반응형
출처: http://meetkei.com/wordpress/?p=1218
● Keyboard Notification
● Keyboard Notification
// 키보드 통지 등록 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidShow:) name:UIKeyboardDidShowNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillHide:) name:UIKeyboardWillHideNotification object:nil]; [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardDidHide:) name:UIKeyboardDidHideNotification object:nil]; // 키보드 통지 해제 [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillShowNotification object:nil]; [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardDidShowNotification object:nil]; [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardWillHideNotification object:nil]; [[NSNotificationCenter defaultCenter] removeObserver:self name:UIKeyboardDidHideNotification object:nil]; // 키보드 통지 처리 메소드 // UIKeyboardWillShowNotification - (void)keyboardWillShow:(NSNotification *)noti { } // UIKeyboardDidShowNotification - (void)keyboardDidShow:(NSNotification *)noti { } // UIKeyboardWillHideNotification - (void)keyboardWillHide:(NSNotification *)noti { } // UIKeyboardDidHideNotification - (void)keyboardDidHide:(NSNotification *)noti { } |
728x90
반응형
댓글