iPhone开发 当输入的键盘会挡住UITextField的处理事件,当键盘消失的时候界面还原
挡住的处理事件地址在:http://www.zzzyk.com/kf/201203/121641.html
以下是还原的处理事件:
注册监听事件:
[[NSNotificationCenterdefaultCenter] addObserver:selfselector:@selector(keyboardWillBeHidden:) name:UIKeyboardWillHideNotificationobject:nil];
事件代码:
- (void)keyboardWillBeHidden:(NSNotification*)aNotification {
CGPoint scrollPoint = CGPointMake(0.0, 0.0);
[scView setContentOffset:scrollPoint animated:YES];
}
摘自 凡娃软件
补充:移动开发 , IOS ,