修改searchBar两种后背景颜色
2016-05-20 13:24
363 查看
searchbar.barTintColor = [UIColor
whiteColor];
UIColor *innerColor =
kColor(235,
235, 241, 1);;
for (UIView* subview
in [[searchbar.subviews
lastObject] subviews]) {
if ([subview
isKindOfClass:[UITextField
class]]) {
UITextField *textField = (UITextField*)subview;
textField.backgroundColor = innerColor;
}
}
whiteColor];
UIColor *innerColor =
kColor(235,
235, 241, 1);;
for (UIView* subview
in [[searchbar.subviews
lastObject] subviews]) {
if ([subview
isKindOfClass:[UITextField
class]]) {
UITextField *textField = (UITextField*)subview;
textField.backgroundColor = innerColor;
}
}
相关文章推荐
- 基环内向树和基环外向树
- 常用的正则表达式---学习笔记(一)
- C++中对象或其对象指针的赋值
- ajax,php,jsp,ajax跨域调用
- AngularJS展示数据的ng-bind指令和{{}} 区别
- 手头软件产品的评价
- HTML地址栏(hash)获取并转码(个人菜鸟笔记)
- 安装node-sass时,遇到的错误MSBUILD: error MSB3428 Visual C++ VCBuild.exe 1) .NET Framework 2.0 SDK Microsoft
- php pdo链接mysql数据库
- Android逆向之旅---动态方式破解apk前奏篇(Eclipse动态调试smail源码)
- 五十七 POP3收取邮件
- cmake入门教程
- apache-tomcat-5.5.35.搭建实战
- python链接mysql数据库并以键值对的形式查询显示
- React入门实践之Todo List
- KMP算法简单实现
- 第一篇随笔
- iOS 图片轮播器
- mybatis参数是list,arry和map
- 五十六 SMTP发送邮件