Remove border between View and Search Bar

前端 未结 7 832
傲寒
傲寒 2020-12-17 14:54

So in Xcode I\'m trying to create a seamless search bar. So I\'m trying to replicate something like this

Note how the status bar is the same color as the s

7条回答
  •  温柔的废话
    2020-12-17 15:21

    The best solution to remove top and bottom default borders is:

    To set a new empty searchBar background layout in viewDidLoad for example:

    searchBar.backgroundImage = UIImage()
    

提交回复
热议问题