Hello,
As far as I can see, Apple has provided no easy way to integrate a UIToolbar at the bottom of the screen. As opposed to UITabBarController which is easy to place on the bottom of the screen and have tied to view controllers, UIToolbar is a normal view just like a UIButton or UISwitch. Thus, it must be manually placed at the bottom of the screen by placing it on a UIView in the view hierarchy.
This is not especially hard, but is definitely messy. And it only gets worse when coupled with a UINavigationController. I have three levels of drilling in: Categories, Items, and then Item Details. The toolbar should remain stationary when transitioning from Categories to Items, but should slide away with the Items when transitioning from Items to Item Details.
I believe that Mail used to do this (hiding the toolbar on the Accounts page) prior to 2.0. I know of some third-party apps that do this (Things). But the only implementation I can come up with is some serious kludges.
Does anyone here have any advice for keeping the code and nibs clean and as kludge-free as possible? Do you think that the apps out there with this functionality do anything more than simple kludges?
Thanks for your time,
Tom
As far as I can see, Apple has provided no easy way to integrate a UIToolbar at the bottom of the screen. As opposed to UITabBarController which is easy to place on the bottom of the screen and have tied to view controllers, UIToolbar is a normal view just like a UIButton or UISwitch. Thus, it must be manually placed at the bottom of the screen by placing it on a UIView in the view hierarchy.
This is not especially hard, but is definitely messy. And it only gets worse when coupled with a UINavigationController. I have three levels of drilling in: Categories, Items, and then Item Details. The toolbar should remain stationary when transitioning from Categories to Items, but should slide away with the Items when transitioning from Items to Item Details.
I believe that Mail used to do this (hiding the toolbar on the Accounts page) prior to 2.0. I know of some third-party apps that do this (Things). But the only implementation I can come up with is some serious kludges.
Does anyone here have any advice for keeping the code and nibs clean and as kludge-free as possible? Do you think that the apps out there with this functionality do anything more than simple kludges?
Thanks for your time,
Tom