Comments on: Multiple UIBarButtonItems in UINavigationBar http://blog.blackwhale.at/2009/06/uibuttons-in-uinavigationbar/ A weblog by Blackwhale about design, code and random stuff we care about. Sun, 05 Sep 2010 16:33:54 +0000 hourly 1 http://wordpress.org/?v=3.0.1 By: zoulhttp://blog.blackwhale.at/2009/06/uibuttons-in-uinavigationbar/comment-page-1/#comment-1346 zoul Tue, 31 Aug 2010 07:43:04 +0000 http://blog.blackwhale.at/?p=46#comment-1346 @zardon: see <a href="http://gist.github.com/558688," rel="nofollow">http://gist.github.com/558688,</a> implemented as a UINavigationItem category. @zardon: see http://gist.github.com/558688, implemented as a UINavigationItem category.

]]>
By: zardonhttp://blog.blackwhale.at/2009/06/uibuttons-in-uinavigationbar/comment-page-1/#comment-1345 zardon Mon, 30 Aug 2010 13:48:13 +0000 http://blog.blackwhale.at/?p=46#comment-1345 I tried the toolbar, but it displays a weird border that overwrites the border of the UINavigation bar. How do you fix this? I tried the toolbar, but it displays a weird border that overwrites the border of the UINavigation bar. How do you fix this?

]]>
By: Korrigedhttp://blog.blackwhale.at/2009/06/uibuttons-in-uinavigationbar/comment-page-1/#comment-1335 Korriged Fri, 20 Aug 2010 10:26:46 +0000 http://blog.blackwhale.at/?p=46#comment-1335 Thank you very much for that :) : it is very helpful to me :). You could also use the following code in order to align the buttons to the right of the frame: UIBarButtonItem *spacer = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil]; [buttons addObject:spacer]; [spacer release]; Unfortunately, the buttons I am using (texts, images) have a variable length and I do not know how to get the total width of the buttons (+ spacers) in order to create the frame (initWithFrame:CGRectMake(0, 0, 100, 45)). Could you help me? Thank you very much :). Thank you very much for that :) : it is very helpful to me :) .
You could also use the following code in order to align the buttons to the right of the frame:
UIBarButtonItem *spacer = [[UIBarButtonItem alloc]
initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil];
[buttons addObject:spacer];
[spacer release];

Unfortunately, the buttons I am using (texts, images) have a variable length and I do not know how to get the total width of the buttons (+ spacers) in order to create the frame (initWithFrame:CGRectMake(0, 0, 100, 45)).
Could you help me? Thank you very much :) .

]]>
By: theneverstillhttp://blog.blackwhale.at/2009/06/uibuttons-in-uinavigationbar/comment-page-1/#comment-1178 theneverstill Fri, 09 Jul 2010 19:48:29 +0000 http://blog.blackwhale.at/?p=46#comment-1178 I think as long as you don't overdo it.. it doesn't.. look.. THAT bad. But honestly, sometimes you need a '+' button as well as an edit button in a sub-table and that blasted back button is taking up the left side of the toolbar. Regardless, thank you for the great post. I think as long as you don't overdo it.. it doesn't.. look.. THAT bad. But honestly, sometimes you need a '+' button as well as an edit button in a sub-table and that blasted back button is taking up the left side of the toolbar.

Regardless, thank you for the great post.

]]>
By: LuRtZhttp://blog.blackwhale.at/2009/06/uibuttons-in-uinavigationbar/comment-page-1/#comment-347 LuRtZ Sat, 20 Feb 2010 15:14:23 +0000 http://blog.blackwhale.at/?p=46#comment-347 Really great, exactly what i was looking for. Than you so much Really great, exactly what i was looking for. Than you so much

]]>
By: Dirk Theisenhttp://blog.blackwhale.at/2009/06/uibuttons-in-uinavigationbar/comment-page-1/#comment-337 Dirk Theisen Thu, 28 Jan 2010 11:44:45 +0000 http://blog.blackwhale.at/?p=46#comment-337 The last UIBarButtonItem instance created is not being released.Dirk The last UIBarButtonItem instance created is not being released.

Dirk

]]>
By: JTBhttp://blog.blackwhale.at/2009/06/uibuttons-in-uinavigationbar/comment-page-1/#comment-323 JTB Wed, 16 Dec 2009 05:01:20 +0000 http://blog.blackwhale.at/?p=46#comment-323 Perfect - Thanks for taking the time to post this! Perfect – Thanks for taking the time to post this!

]]>