UITextField修改placeHolder颜色
2016-01-13 20:42
579 查看
NSMutableDictionary *attributes = [NSMutableDictionary dictionary]; // 设置富文本对象的颜色 attributes[NSForegroundColorAttributeName] = [UIColor whiteColor]; // 设置UITextField的占位文字 self.phoneTextField.attributedPlaceholder = [[NSAttributedString alloc] initWithString:@"手机号" attributes:attributes];
相关文章推荐
- Android UI性能优化实战 识别绘制中的性能问题
- iOS 【UIKit-简单抽屉效果】
- Quicksum
- Buildings
- String,StringBuffer,StringBuilder比较
- ugui scrollrect 多点触摸实现缩放
- UIView的交换实现,子视图交替变换
- 【UE4学习】01——UE4下载与安装
- valuestack,stackContext,ActionContext.之间的关系
- LeetCode N-Queens II
- 206,UIPickView类
- UI课程(导航栏navigationItem)
- 自定义本地推送通知(UILocalNotification) 星期和时间
- LeetCode N-Queens
- UIButton设置图片和文字
- iOS开发之:dispatch_async 与 dispatch_get_global_queue 的使用方法
- NGUI:浅谈NGUI中UISprite和UITexture
- UIDynamic介绍
- QUESTION 56 Automatic Shared Memory Management is disabled for your database instance. You realize t
- 46: Which two statements are true about setting the FAST_START_MTTR_TARGET initialization parameter