On Jul 29, 2009, at 12:48 AM, DKJ wrote:

I'm using the setToolbarItems:animated: of a UITableViewController to place buttons on the toolbar. If I was using IB, I could space the buttons evenly simply by inserting some flexible-space ones between them. Is there an easy way to do this in code? Or do I need to calculate widths for some blank buttons and insert them into the toolbar items array?

dkj

As almost always, the answer lies in the documentation. Take a look at the UIBarButtonItem method

- (id) initWithBarButtonSystemItem: (UIBarButtonSystemItem) systemItem
                            target: (id)
                      targetaction: (SEL) action

and use the appropriate choice from the enumeration UIBarButtonSystemItem.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to