我考虑使用自定义导航栏。但是我不知道如何用快速和情节提要创建圆角效果。你能帮我吗?
对于四舍五入的核心人员,您只需要设置layer s cornerRadius:
layer
cornerRadius
searchBar.layer.cornerRadius = searchBarHeight/2