UIButton return(textField textView)
2013-06-18 21:38
267 查看
首先设置TextField 或 TextView的 delegate
/////UITextView - (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text { if ([text isEqualToString:@"\n"]) { NSLog("点击return"); return NO; } return YES; }
/////UITextField - (BOOL)textFieldShouldReturn:(UITextField *)textField { NSLog("点击return"); return YES; }
相关文章推荐
- UIButton return(textField textView)
- iOS中textView和textField键盘的return键点击事件
- textField , textView点击键盘上的return键时触发的方法
- <转>textView return 键盘 textfield 键盘
- 把textfield或者textview中长按出现的(全选,复制,粘贴) 系统相册等提示语 显示成中文
- textFieldShouldReturn方法的使用
- textField和textView字数限制
- TableView cell section TextField ALert
- IOS学习笔记(6)label textField textview
- UIAlertView中的textField输入文本过长时偏移
- [ios]TableView的Cell中有Textfield时放置键盘遮挡输入框
- IOS开发:对TextField或TextView添加文字限制
- 如何给 textview添加类似于textfield的水印文字
- 关于textView,textField及delegate的使用
- UIButton.titleLabel.text和[UIButton setTitle:],UIButton.imageView.image和[UIButton setImage]的区别
- textFieldShouldReturn: 方法无效化!
- textview弹出的键盘,按return回收键盘
- iOS-TextView、UIButton加边框,加下划线
- textFieldShouldReturn方法键盘无法消失 无法return的问题