Using toolbars in iPhone OS 2.x is hard to get it right. The documentation is fuzzy, or non-existing. The addition of proper toolbar handling in iPhone OS 3.0 is a clear sign of Apple admitting that toolbars in 2.x where just not ready for the public.
This is not the answer you expect, but the answer you need. Ask yourself; "Will a user who has not bothered to update to iPhone OS 3.0 bother to install my app?"
The answer is most probably no.
Then what you should do is make sure your application uses a UINavigationController
, and have each UIViewController
that needs a toolbar set it's toolbarItems
property to an NSArray
with the UIBarButtonItem
objects you need.
On iPhone OS 3.0 this will result in a toolbar that is automatically populated, laid out, and managed for you with no fuzz.