[英]How do you make the UISearchBar translucent?
On iOS 7, setting the UISearchBar to be translucent isn't making the search bar translucent. 在iOS 7上,将UISearchBar设置为半透明不会使搜索栏变为半透明。 Is there anything I'm not understanding it?
有什么我不理解的吗? I'm adding it to a UIViewController that is part of a UINavigationController.
我将其添加到UINavigationController的一部分UIViewController中。 There's a UITableView aligning to the Top Layout Guide.
有一个UITableView与顶部布局指南对齐。 The navigation bar is fine and has translucency, but the search bar is a solid color for some reason.
导航栏很好并且具有半透明性,但是出于某些原因,搜索栏是纯色。
See the new .searchBarStyle
property on UISearchBar. 请参阅UISearchBar上新的
.searchBarStyle
属性。 I suspect UISearchBarStyleMinimal
is what you're after. 我怀疑
UISearchBarStyleMinimal
是您追求的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.