UITextView 监听点击了returnKey 的方法
2015-08-20 09:20
411 查看
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text { if ([text isEqualToString:@"\n"]) { [UIView animateWithDuration:0.25 animations:^{ <span style="white-space:pre"> </span>做任何事!
}]; [textView resignFirstResponder]; return NO; } return YES; }
相关文章推荐
- Qt:将quick的控件图像保存为QImage
- iOS UI16_数据持久化
- Xcode环境变量 build Settings 设置
- iOS 9学习系列:UIStackView如何让你的开发更简单
- PHP中 include, include_once, require, require_once的区别
- Havok_2014-1-0_Pc_Xs_User_Guide(2.2.1-创建一个Physics2012对象)
- IOS开发UI阶段 第六周
- iOS开发笔记--iphone练习之手势识别(双击、捏、旋转、拖动、划动、长按)UITapGestureRecognize
- poj 1679 The Unique MST 【次小生成树+100的小数据量】
- iOS多线程-03-NSOperation与NSOperationQueue
- 发现UITableView留白问题解决办法
- IOS UI初级-滑动视图ScrollerView
- IOS UI初级-触摸与手势的基本概念和用法
- Win10 Build 10525系统详情页面出现Win8 Logo 已修复
- Unique Binary Search Trees II
- Codeforces 570D Tree Requests(DFS重标号+树状数组)
- DB Query Analyzer 6.04 is distributed, 78 articles concerned have been published
- uestc 94(区间更新)
- Max Sequence
- hdu(5400)——Arithmetic Sequence(想法题)