标签:
1.去掉导航栏边界的黑线:
in viewDidload:
[self.navigationController.navigationBar setBackgroundImage:[[UIImage alloc] init] forBarMetrics:UIBarMetricsDefault];
self.navigationController.navigationBar.shadowImage = [[UIImage alloc] init];
2.去掉搜索框边界的黑线:
in viewDidload:
[self.textSearchBar setBackgroundImage:[[UIImage alloc] init]];
3.去掉搜索框的文本输入框的阴影:
in stroryboard:
选中搜索框——右边in attribute inspector——View 在Tint的颜色栏中选择 clear color
标签:
原文地址:http://www.cnblogs.com/tongyuling/p/4699709.html