UITextField 的Placeholder的字体的颜色大小
来源:互联网 发布:端口转发 8283被禁止 编辑:程序博客网 时间:2024/06/05 19:08
设置UITextField的placeholder的颜色代码片段:
UITextField *textField = [[UITextField alloc] initWithFrame:CGRectMake(0, 0, 200, 200)];NSString *holderText = @"标哥的技术博客";NSMutableAttributedString *placeholder = [[NSMutableAttributedString alloc] initWithString:holderText];[placeholder addAttribute:NSForegroundColorAttributeName value:[UIColor redColor] range:NSMakeRange(0, holderText.length)];[placeholder addAttribute:NSFontAttributeName value:[UIFont boldSystemFontOfSize:16] range:NSMakeRange(0, holderText.length)];textField.attributedPlaceholder = placeholder;[cell.contentView addSubview:textField];
0 0
- UITextField placeholder 字体颜色, 大小的修改
- UITextField 的Placeholder的字体的颜色大小
- 修改UITextField的placeholder的字体颜色、大小
- iOS修改UITextField的placeholder的字体颜色大小
- iOS-修改UITextField的placeholder字体颜色、大小
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- //改变UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体的颜色
- 修改UITextfield的Placeholder字体颜色
- UITextField修改placeholder的大小和颜色
- Google深度学习笔记 逻辑回归 实践篇
- 微信 错误码:40018,错误提示:invalid button name size
- Java语言的优点
- [LeetCode] Palindrome Pairs
- 关路灯——power 解题报告
- UITextField 的Placeholder的字体的颜色大小
- ADAS实际已涵盖20多种功能
- tomcat中jvm启动项设置
- 使用JChat报错
- iptables nat
- mysql之视图详解
- JS-异常处理
- iOS学习笔记-开发中APP跳转
- Android Studio添加assets文件夹