• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Two right buttons on UINavigationBar?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two right buttons on UINavigationBar?


  • Subject: Re: Two right buttons on UINavigationBar?
  • From: Arie Pieter Cammeraat <email@hidden>
  • Date: Thu, 6 Aug 2009 09:12:23 +0200

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] loadNibName@"yourNibFile" owner:"nameOfNIBFilesOwner" options: nil];
UIBarButtonItem * barButton1 = (UIBarButtonItem *)[topLevelObjs objectAtIndex: indexNumber];


you could build in some error checking, like checking the class and the tag of the UIBarButtonItem.

Feel free to comment on this!

Op 6-aug-2009, om 7:47 heeft Agha Khan het volgende geschreven:

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 of them is always hidden. I need 2 buttons because they point to 2 different click functions and different captions.



You might have better idea?

Best regards
Agha_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
40yaranga.nl


This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

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:
This email sent to email@hidden


References: 
 >Two right buttons on UINavigationBar? (From: Agha Khan <email@hidden>)

  • Prev by Date: Re: NSMenuItem addTarget & retain
  • Next by Date: resolving addresses for the system framework
  • Previous by thread: Two right buttons on UINavigationBar?
  • Next by thread: Re: Two right buttons on UINavigationBar?
  • Index(es):
    • Date
    • Thread