01 2014 档案

摘要:IOS中键盘是在编辑控件获得第一响应者时出现,编辑控件有UITextField,UITextView等,这里以UITextField做为例子。首先实现UITextFieldDelegate中的几个方法:#pragma mark - UITextFieldDelegate-(BOOL)textFieldShouldBeginEditing:(UITextField*)textField{ //注册键盘出现和消失的通知中心 [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(keyboardW... 阅读全文
posted @ 2014-01-03 10:25 苍龙潜行 阅读(498) 评论(0) 推荐(0) 编辑