Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-16-2009, 05:07 PM   #1 (permalink)
Registered Member
 
Join Date: Sep 2009
Posts: 46
Post Creating custom buttons in a UINavigationController

I have an app, that is Tab Bar based. And on each tab there is a UINavigationController. Then on some of the views that are pushed with the Navigation Controller, I need to have some custom buttons on the UINavigationBar for that view. I found some example code that shows how to do that with a UIToolBar and have implemented that. I added the UIToolBar to my .xib for my view, above my table view. And in my code I create the buttons that I needs on there and add them to the toolbar items like so

[self.toolBar setItems:[NSArray arrayWithObjects:doneButton, leftFlex, titleButton, titleButton, playButton, addButton, nil] animated:NO];

But when my view is pushed from the previous view, where the toolbar should show up, it shows as completely blank area.

So my questions are:

1) Is this the correct way to do this?

2) Is there another way to add more buttons to a UINavigationBar? If so is there example code anywhere.

I don't know when this started happening, but the code I got said it worked under 2.0+, but under 3.0+ it seems to be broken doing it the way I am doing it.

Can anyone help me?

Thanks in advance.
BitBlasters is offline   Reply With Quote
Old 10-26-2009, 12:52 PM   #2 (permalink)
Registered Member
 
Join Date: Aug 2009
Posts: 8
Default

Hi
I'm stuck on the same problem, can I ask how have you solved?


Quote:
Originally Posted by BitBlasters View Post
I have an app, that is Tab Bar based. And on each tab there is a UINavigationController. Then on some of the views that are pushed with the Navigation Controller, I need to have some custom buttons on the UINavigationBar for that view. I found some example code that shows how to do that with a UIToolBar and have implemented that. I added the UIToolBar to my .xib for my view, above my table view. And in my code I create the buttons that I needs on there and add them to the toolbar items like so

[self.toolBar setItems:[NSArray arrayWithObjects:doneButton, leftFlex, titleButton, titleButton, playButton, addButton, nil] animated:NO];

But when my view is pushed from the previous view, where the toolbar should show up, it shows as completely blank area.

So my questions are:

1) Is this the correct way to do this?

2) Is there another way to add more buttons to a UINavigationBar? If so is there example code anywhere.

I don't know when this started happening, but the code I got said it worked under 2.0+, but under 3.0+ it seems to be broken doing it the way I am doing it.

Can anyone help me?

Thanks in advance.
marco.mussini75 is offline   Reply With Quote
Reply

Bookmarks

Tags
uinavigationbar, uinavigationcontroller, uitoolbar

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 233
15 members and 218 guests
ADY, AragornSG, Dani77, Dattee, Duncan C, fkmtc, HDshot, HemiMG, Promo Dispenser, Punkjumper, Rudy, sacha1996, sneaky, spiderguy84, theone8one
Most users ever online was 1,187, 10-11-2011 at 08:09 AM.
» Stats
Members: 158,885
Threads: 89,231
Posts: 380,768
Top Poster: BrianSlick (7,129)
Welcome to our newest member, bookesp
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 03:15 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0