Remove Border of UISearchBar in iOS7

前端 未结 10 1662
死守一世寂寞
死守一世寂寞 2020-12-24 10:46

I\'m trying to remove border of UISearchBar in iOS 7. In iOS 6 it\'s working fine. I created the UISearchBar programatically. I tried almost every thing from Stack Overflow

10条回答
  •  旧巷少年郎
    2020-12-24 11:09

    Set Search Style = minimal in Search Bar properties in IB

    Or

    Swift:
    searchBar.searchBarStyle = UISearchBarStyleMinimal;
    
    Swift 3:
    searchBar.searchBarStyle = .minimal;
    

提交回复
热议问题