- 2012/01/23 16:10
- dontworry.egloos.com/1642436
- 덧글수 : 0
- 2012/01/23 15:57
- dontworry.egloos.com/1642434
- 덧글수 : 0
1. Return key 입력
- (BOOL)textFieldShouldReturn:(UITextField *)textField {
if (textField == addressField) {
[portField becomeFirstResponder];
} else if (textField == portField) {
[idField becomeFirstResponder];
} else if (textField == idField) {
[pwField becomeFirstResponder];
} else {
[pwField resignFirstResponder];
[self loginProcess];
}
return YES;
}
2. 화면 위/아래로 스크롤
- (void)textFieldDidBeginEditing:(UITextField *)textField {
if (textField == portField || textField == idField || textField == pwField) {
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:0.5];
[UIView setAnimationBeginsFromCurrentState:YES];
if (textField == pwField) {
self.view.frame = CGRectMake(self.view.frame.origin.x, (self.view.frame.origin.y - 200.0), self.view.frame.size.width, self.view.frame.size.height);
} else {
self.view.frame = CGRectMake(self.view.frame.origin.x, (self.view.frame.origin.y - 100.0), self.view.frame.size.width, self.view.frame.size.height);
}
[UIView commitAnimations];
}
}
- (void)textFieldDidEndEditing:(UITextField *)textField {
if (textField == portField || textField == idField || textField == pwField) {
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDelegate:self];
[UIView setAnimationDuration:0.5];
[UIView setAnimationBeginsFromCurrentState:YES];
if (textField == pwField) {
self.view.frame = CGRectMake(self.view.frame.origin.x, (self.view.frame.origin.y + 200.0), self.view.frame.size.width, self.view.frame.size.height);
} else {
self.view.frame = CGRectMake(self.view.frame.origin.x, (self.view.frame.origin.y + 100.0), self.view.frame.size.width, self.view.frame.size.height);
}
[UIView commitAnimations];
}
}
- 2012/01/18 14:06
- dontworry.egloos.com/1640494
- 덧글수 : 0
- 2012/01/16 04:43
- dontworry.egloos.com/1639474
- 덧글수 : 0
| 파일 이름 | 아이콘 사이즈 | 용도 |
| Icon.png | 57x57 | 일반적인 아이폰 아이콘 |
| Icon@2x.png | 114x114 | 고해상도 iPhone4 아이콘 |
| Icon-72.png | 72x72 | 아이패드 아이콘 |
| Icon-Small.png | 29x29 | 설정용 아이폰 아이콘 |
| Icon-Small@2x.png | 58x58 | 설정 및 검색 결과 고해상도 iPhone4 아이콘 |
| Icon-Small-50.png | 50x50 | 설정 및 검색 결과 아이패드 아이콘 |
- 2011/04/13 11:32
- dontworry.egloos.com/1448047
- 덧글수 : 0
// 오리지널 메시지
NSString *original = @"Hello, Nice to meet you\nWelcome to my blog(http://theeye.pe.kr)";
// URL Encode
NSString *escaped = [original stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSLog(@"escaped string :\n%@", escaped);
// URL Decode
NSString *decoded = [escaped stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
NSLog(@"decoded string :\n%@", decoded);
2009-04-03 12:20:58.721 URLEncodeExample[342:20b] escaped string :
Hello,%20Nice%20to%20meet%20you%0AWelcome%20to%20my%20blog(http://theeye.pe.kr)
2009-04-03 12:20:58.723 URLEncodeExample[342:20b] decoded string :
Hello, Nice to meet you
Welcome to my blog(http://theeye.pe.kr)



최근 덧글