UiTextView的提示文字效果
2015-11-09 20:27
471 查看
#pragma mark ----textView delegate -(BOOL) textViewShouldBeginEditing:(UITextView *)textView { if(textView.tag == 0) { textView.text = @""; textView.textColor = [UIColor colorWithHex:0x666666 alpha:1]; textView.tag = 1; } return YES; } -(void)textViewDidEndEditing:(UITextView *)textView { if([textView.text length] == 0) { textView.text = @"文章内容"; textView.textColor = [UIColor colorWithHex:0xe1e1e1 alpha:1]; textView.tag = 0; } }
相关文章推荐
- UILabel
- 交互设计流程
- Android-Mac电脑如何进行APK反编译-使用apktool、jd-gui
- 利用SoapUI 测试web service的方法介绍
- VS2008LINK : fatal error LNK1000: Internal error during IncrBuildImage编译错误解决办法
- ios Bluetooth 蓝牙
- wait_queue_head_t 使用
- 1101. Quick Sort
- HDU 4296 Buildings(贪心)
- iOS 如何获取系统的个人热点,进行配置UI
- webservice报错Message part refundRequest was not recognized. (Does it exist in service WSDL?)
- easyUi在后台加载异步树
- UIGestureRecognizer(高级)
- UIAlertView弹出框的简单使用
- 关于Intellij IDEA菜单项中Compile、Make和Build的区别
- How Did Watson Answer? —— About Question Analysis
- UIView 杂记
- UI设计工具
- 【转】jmeter 进行java request测试
- 自定义UICollectionViewFlowLayout