ios - UISearchBar not showing scope bar when setting in storyboard -
i want add searchbar scope bar top of tableview, build app storyboard. works before add scope bar.
then check checkbox in attributes inspector , add 2 scope titles:
the searchbar turns out way:
goes wrong.
i remove setting , try code:
self.searchbar.showsscopebar = yes; self.searchbar.scopebuttontitles = @[@"title1",@"title2",@"title3"];
it seems works except color of copebuttons:
i using xcode6.1 , deployment target 7.0, 1 have ideas?
if using story board view controller should controlled navigation controller , use document outline drag , drop want.
Comments
Post a Comment