Re: Two right buttons on UINavigationBar?

2009-08-12 Thread Steven Arnold
On Thu, 6 Aug 2009 14:03:12 -0400, Hank Heijink wrote: If one of your buttons is always hidden, why do you need two buttons? You can just use one button and change the title, target, and action when you need to. If necessary you can even replace the whole button. On Aug 6, 2009, at 1:47

Re: Two right buttons on UINavigationBar?

2009-08-12 Thread Kyle Sluder
On Aug 12, 2009, at 11:49 AM, Steven Arnold stev...@arnold- software.com wrote: I have a use case for needing two buttons. I need a button to add a new item and a button to edit (including delete and move around) existing items. It's a UINavigationBar, so I am using the

Re: Two right buttons on UINavigationBar?

2009-08-07 Thread Agha Khan
It looks like it is a bug. Someone else have same problem. http://blog.7touchgroup.com/2009/08/uinavigationitem-sethidesbackbuttonyes-won ’t-prevent-from-goingback/ I would like to change the action of the Done button. As you see in UINavigationBar.h (line 62) it has only 2 items (topItem

Re: Two right buttons on UINavigationBar?

2009-08-06 Thread Arie Pieter Cammeraat
you might: * change the buttons programmatically every time. * drag 2 UIBarButtonItems in your InterfaceBuilder file, set the connections and the captions in IB. Then in XCode, you can change the buttons by using NSArray * topLevelObjs = nil; topLevelObjs = [[NSbundle mainBndle]

Re: Two right buttons on UINavigationBar?

2009-08-06 Thread Hank Heijink (Mailinglists)
If one of your buttons is always hidden, why do you need two buttons? You can just use one button and change the title, target, and action when you need to. If necessary you can even replace the whole button. Hank On Aug 6, 2009, at 1:47 AM, Agha Khan wrote: Hi: I have a UINavigationBar

Two right buttons on UINavigationBar?

2009-08-05 Thread Agha Khan
Hi: I have a UINavigationBar where I would like to place 2 buttons. I was looking UINavigationBar.h for its implementation and didn't see the way we could add more than 2 buttons(Right hand side and left hand siderightBarButtonItem ) but my both buttons are rightBarButtonsItems where one