반응형
NSDictionary *userInfo = [notification userInfo];
// Get the origin of the keyboard when it's displayed.
NSValue *aValue = [userInfo objectForKey:UIKeyboardFrameEndUserInfoKey];
// Get the top of the keyboard as the y coordinate of its origin in self's view's
// coordinate system. The bottom of the text view's frame should align with the top
// of the keyboard's final position.
//
CGRect keyboardRect = [aValue CGRectValue];
keyboardRect = [self.view convertRect:keyboardRect fromView:nil];
CGFloat keyboardTop = keyboardRect.origin.y;
반응형
'Developer > IOS' 카테고리의 다른 글
UIDocumenet 에 저장 하기.. (0) | 2013.02.25 |
---|---|
마이피플에 메시지 보내기.. (0) | 2013.02.25 |
화면캡쳐 (0) | 2013.02.19 |
기본문법 (0) | 2013.02.07 |
View Font Change : Font name, Size, Color (0) | 2013.02.01 |