搜索栏上有奇怪的灰色边缘

时间:2016-08-07 15:15:27

标签: ios uisearchbar searchbar

我在视图中添加了UISeachBar,由于某种原因,它有这些奇怪的灰色边缘,似乎在搜索栏后面。它们来自哪里/如何摆脱它们?

enter image description here

searchBar = UISearchBar(frame: CGRect(x: 10, y: 10, width: self.frame.width-20, height: 25))
searchBar.delegate = self
self.addSubview(searchBar)

0 个答案:

没有答案