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.

enter image description here

then check checkbox in attributes inspector , add 2 scope titles: enter image description here

the searchbar turns out way:

enter image description here goes wrong.

i remove setting , try code:

self.searchbar.showsscopebar = yes;  self.searchbar.scopebuttontitles = @[@"title1",@"title2",@"title3"];

it seems works except color of copebuttons: enter image description here

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

Popular posts from this blog

java - Oracle EBS .ClassNotFoundException: oracle.apps.fnd.formsClient.FormsLauncher.class ERROR -

c# - how to use buttonedit in devexpress gridcontrol -

nvd3.js - angularjs-nvd3-directives setting color in legend as well as in chart elements -