在NavigtionBar上设置 UISearchBar
来源:互联网 发布:预算计价软件 编辑:程序博客网 时间:2024/05/17 06:03
<span style="font-family:Times New Roman;font-size:18px;">self.searchBar = [[[UISearchBar alloc] init] autorelease]; self.searchBar.barTintColor = [UIColor whiteColor]; _searchBar.frame = CGRectMake(0, 0, 200, 25); //设置圆角 _searchBar.layer.cornerRadius = 12.5; _searchBar.layer.masksToBounds = YES; [_searchBar.layer setBorderWidth:0.5]; [_searchBar.layer setBorderColor:[UIColor blackColor].CGColor]; //设置边框为白色 //设置titleView UIView *titleView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 25)];//allocate titleView [titleView setBackgroundColor:[UIColor whiteColor]]; [titleView addSubview:_searchBar]; self.navigationItem.titleView = titleView; _searchBar.placeholder = @"请输入搜索内容";</span>
0 0
- 在NavigtionBar上设置 UISearchBar
- UISearchBar在uinavigationbar上显示-ios7
- 重新设置navigtionbar的透明度和颜色的方法
- Swift实用技术系列-如何在navigationbar上添加UISearchBar
- 设置UISearchBar的背景图片
- UISearchBar设置透明背景
- UISearchBar常见设置
- UISearchBar 背景 边框设置
- UISearchBar光标偏移设置
- UISearchbar设置相关总结
- UiSearchBar圆角设置
- 设置UISearchBar并修改背景
- iOS7下 UISearchBar设置ReturnKeyType
- UISearchBar 取消按钮中文设置
- 设置UISearchBar的背景颜色
- UISearchBar的部分自定义设置
- iOS UISearchBar 属性 设置详解
- navigation上用UISearchBar时,在push回来时有个框会闪一下
- 萌萌的单调栈 : poj2796 , poj2559 ,
- Java API 读取HDFS目录下的所有文件
- XDOJ1015--Requirements
- 【ArcGis】VS2012中丢失ArcGIS模板的解决方法
- android模拟器右侧没有键盘
- 在NavigtionBar上设置 UISearchBar
- Linux 命令ls -l 已经更改权限的命令
- uva 1564 - Widget Factory(高斯消元+逆元)
- 23种设计模式(4):建造者模式
- flash memory
- hdu-3784-继续xxx定律
- 杭电 2084 数塔 (DP)
- linux发送post请求
- 断点续传 ASIHTTPRequest