iphone - iOS: Confusion over Interface Builder -
there times when set things in interface builder , show expect in app. other times, show differently or not @ all. , can't seem handle on why case.
for example, presenting navigation controller in modal view. in interface builder, when try set title of navigation bar, gets ignored. understand navigation bar title takes name title of view displaying, need set title on subview rather on navigation bar. makes plenty of sense when considering code only, fact ib allows seemingly set title confusing. why let you? looks "right" in ib if doesn't reflect true state of app?
a similar example adding uibarbuttonitem navigation bar. again, in ib can add it, set title, style, etc. doesn't show up. have set .navigationitem.leftbarbuttonitem property on root view controller navigation controller initialized with.
so far can tell, neither of 2 things above (title & button) achievable through ib, yet ib sure makes seem are. , in end, makes meaningless have xib file navigation controller.
am missing something?
when xib has "navigation bar" set "top bar" under "simulated metrics", title can not set, , buttons can not added. did manually add navigation bar xib? if did, that's why ib lets set title , add bar button items. shouldn't manually add navigation bars because expect 1 added navigation controller @ point. should use simulated metrics.
Comments
Post a Comment