首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > 移动开发 >

UITextField 封锁键盘

2012-10-05 
UITextField 关闭键盘UITextField tftf.delegate self//实现重写了textFieldShouldReturn:方法-(BOOL)

UITextField 关闭键盘

UITextField tf;tf.delegate = self;//实现重写了textFieldShouldReturn:方法-(BOOL)textFieldShouldReturn:(UITextField *)textField{    [textField resignFirstResponder];    return YES;}

热点排行