iphone - Adding toolbars to a view -
what kind of toolbars these @ top , bottom of view?

how these added in code rather in ib?
the top portion looks uinavigationcontroller presented modally uiviewcontroller. cancel button added in
- (void)viewdidload method of view right navigation item.
the bottom plain old uitoolbar 4 buttons.
all uinavigationcontrollers have uitoolbar built in , it's matter of calling following function display it.
[self.navigationcontroller settoolbarhidden:no]; if want create buttons, can call...
- (void)settoolbaritems:(nsarray *)toolbaritems animated:(bool)animated to configure uitoolbar items. items in uitoolbar nsarray of objects. in case objects buttons. in order space items in uitoolbar there's flexible space object can put between buttons make pretty. when setup array of toolbar items you'd have. button | space | button | space | button | space | button accomplish above look.
here's info on uitoolbar class reference if lost.
Comments
Post a Comment