• 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
UIToolbar, can't access buttons added in IB
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UIToolbar, can't access buttons added in IB


  • Subject: UIToolbar, can't access buttons added in IB
  • From: Alexander Reichstadt <email@hidden>
  • Date: Thu, 29 Dec 2011 20:33:45 +0100

Hi,

in my UIViewController using IB I can add buttons to its view's toolbar bar, I am referring to that bar widget thing at the bottom, just in case someone was as confused as I was at first. Anyway, I can see them in IB as well as in my running app. Yet, when debugging, I found no way to actually get a hold of their instances. If I use the controller and say navigationController.toolbar.items the resulting array is empty, even though the navigationController is not nil nor is its toolbar. I checked in - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil as well as in viewDidLoad. I also checked in the location where I create the instance of the controller.

Is there a way to actually do something with those buttons once they are added in IB, or is it like using IB they are built in concrete and somewhere inaccessible?

Thanks
Alex

_______________________________________________

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

  • Prev by Date: Re: how to cancel call to CSSM_SignData
  • Next by Date: Re: Template Images in Table Cells
  • Previous by thread: Why is +[NSFileVersion(NSTemporaryCompatibility) unresolvedConflictsExistForItemAtURL:] hanging/
  • Next by thread: RaiseMan Exception
  • Index(es):
    • Date
    • Thread