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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/luketheh%40apple.com This email sent to luket...@apple.com
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com