• 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: Reacting to UIBarButtonItem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Reacting to UIBarButtonItem


  • Subject: Re: Reacting to UIBarButtonItem
  • From: Anthony Smith <email@hidden>
  • Date: Wed, 7 Oct 2009 20:40:48 -0400

Here's what I'm doing.

- (void)displayShuffleView:(id)sender {
	// Whatever here
}

- (void)viewDidLoad {
	[super viewDidLoad];

	[doneButton setTarget:self];
	[doneButton setAction:@selector(displayShuffleView:)];
}

I'm not sure what's up. self is a UIViewController. I put log statements to check for a trigger but nothing is coming through.

On Oct 7, 2009, at 8:32 PM, Luke the Hiesterman wrote:

Target and action is the way to go. There must be an error in doing so, probably a typo in setting the action selector. Remember that colons are part of selector names....

Luke

On Oct 7, 2009, at 5:25 PM, Anthony Smith wrote:

I have a settings pane similar to Weather's settings pane. I have a Done button on the right hand side which needs to trigger a flip animation to get back to the main view. I'm having trouble getting the UIBarButtonItem to trigger. I've tried setting the target and action properties of UIBarButtonItem but that doesn't seem to do anything. Am I required to use a UINavigationController for this scenario? I've read up on navigation controllers in the View Controller Programming Guide but I'm not having much luck. Any input would be appreciated._______________________________________________

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


Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

  • Follow-Ups:
    • Re: Reacting to UIBarButtonItem
      • From: Luke the Hiesterman <email@hidden>
References: 
 >Reacting to UIBarButtonItem (From: Anthony Smith <email@hidden>)
 >Re: Reacting to UIBarButtonItem (From: Luke the Hiesterman <email@hidden>)

  • Prev by Date: Re: UITabBar & UIActionSheet
  • Next by Date: Re: Reacting to UIBarButtonItem
  • Previous by thread: Re: Reacting to UIBarButtonItem
  • Next by thread: Re: Reacting to UIBarButtonItem
  • Index(es):
    • Date
    • Thread