码迷,mamicode.com
首页 >  
搜索关键字:uitextview    ( 377个结果
IOS开发UI基础UITextView相关属性
UITextView相关属性 ? text:设置textView中文本_textView.text = @"Now is the time for all good developers to come to serve their country.\n\nNow is the time for a...
分类:移动开发   时间:2015-08-01 18:36:40    阅读次数:153
IOS中UITextField限制字数,特别是中文
首先,如果只是数字和英文,那只需要实现UITextField或UITextView的Delegate.- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacement...
分类:移动开发   时间:2015-07-29 15:46:41    阅读次数:548
iOS: iPhone键盘通知与键盘定制
一.键盘通知当文本View(如UITextField,UITextView,UIWebView内的输入框)进入编辑模式成为first responder时,系统会自动显示键盘。成为firstresponder可能由用户点击触发,也可向文本View发送becomeFirstResponder消息触发。...
分类:移动开发   时间:2015-07-29 13:47:04    阅读次数:166
IOS之富文本编辑
之前做项目时遇到一个问题: 使用UITextView显示一段电影的简介,由于字数比较多,所以字体设置的很小,行间距和段间距也很小,一大段文字挤在一起看起来很别扭,想要把行间距调大,结果在XCode中查遍其所有属性才发现,UITextView居然没有调整行间距的接口,于是忍住不心里抱怨了一下下。 .....
分类:移动开发   时间:2015-07-28 17:45:58    阅读次数:234
UITextView限制输入字数
很多时候我们想限制textView中的输入字数,我们可以利用函数- (void)textViewDidChange:(UITextView *)textView中统计textView实现此功能。通过在此函数中统计你输入的字符的个数,当字数超过你限制的字数时调用函数-(NSString *)subst...
分类:其他好文   时间:2015-07-25 14:59:33    阅读次数:98
对textView 的输入个数进行判断
- (BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text{/*if ([text isEqualToString:@"\n"]){[t...
分类:其他好文   时间:2015-07-23 13:36:47    阅读次数:129
IOS UITextView光标位置在中间的问题
在viewDidLoad中     if ([self respondsToSelector:@selector(setAutomaticallyAdjustsScrollViewInsets:)]) {         self.automaticallyAdjustsScrollViewInsets = NO;     }...
分类:移动开发   时间:2015-07-20 13:02:49    阅读次数:340
UITextView 不左上角显示
在Autolayout中 UITextView显示不左上角显示,修改如下在viewDidLoad里面添加如下代码if([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0){self.automaticallyAdjustsScro...
分类:其他好文   时间:2015-07-19 11:31:11    阅读次数:114
How do I size a UITextView to its content?
UITextView 自适应高度,搬来一篇stack上的:Is there a good way to adjust the size of a UITextView to conform to its content? Say for instance I have a UITextView th...
分类:其他好文   时间:2015-07-16 18:29:55    阅读次数:408
【转】UITextView 修改键盘 的return按钮
原文:http://www.apkbus.com/blog-107838-45740.html1 #import 2 3 @interface TextViewController : UIViewController {4 UITextView *textView;5 }6 7 @pr...
分类:其他好文   时间:2015-07-16 16:07:52    阅读次数:105
377条   上一页 1 ... 20 21 22 23 24 ... 38 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!