标签: ios uisearchbar searchbar
我在视图中添加了UISeachBar,由于某种原因,它有这些奇怪的灰色边缘,似乎在搜索栏后面。它们来自哪里/如何摆脱它们?
UISeachBar
searchBar = UISearchBar(frame: CGRect(x: 10, y: 10, width: self.frame.width-20, height: 25)) searchBar.delegate = self self.addSubview(searchBar)