Ron*_*don 3 objective-c uisearchbar ios ios7 ios7.1
在我的应用程序中,我正在使用UISearchBar
自定义UIView
.
以下是显示的代码UISearchBar
.
searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(50, 135, 230, 32)];
searchBar.barTintColor = [UIColor clearColor];
searchBar.placeholder = @"Search";
[self addSubview:searchBar];
Run Code Online (Sandbox Code Playgroud)
在iOS 7.0.3中,没有显示bartint颜色,
但是在iOS 7.1中,bartint颜色没有隐藏.
mea*_*ers 10
看起来这就是诀窍:
[searchBar setBackgroundImage:[UIImage new]];
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
738 次 |
最近记录: |