摘要: 在iOS3.2以后的系统中,苹果就提供了键盘使用的API以及Demo程序——“KeyboardAccessory”。 处理键盘事件的正确方法是这样的:(包括获取键盘的位置以及键盘弹出和消失动画的时间) 1)在要使用键盘的视图控制器中(既viewDidLoad中),接收键盘事件的通知:[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardWillShow:) name:UIKeyboardWillShowNotification object:nil];[[NSNotificatio.. 阅读全文
posted @ 2012-11-26 20:55 Kristen 阅读(1260) 评论(0) 推荐(0) 编辑