UIButton return(textField textView)
生活随笔
收集整理的這篇文章主要介紹了
UIButton return(textField textView)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
首先設置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;
}
轉載于:https://www.cnblogs.com/snake-hand/p/3143216.html
總結
以上是生活随笔為你收集整理的UIButton return(textField textView)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 京东发布车载户外保温箱:99.9元 垂钓
- 下一篇: 法拉利起步男子踹了一脚!车主:或赔10万