Hello Guys,

I have trouble setting the action for my backbarbutton item. No matter how I 
set 
it, my selector does not get called.
Here is my code below:


        UIBarButtonItem *backB = [[UIBarButtonItem alloc] init];
backB.title = @"Back";
backB.action = @selector(disconnect:);
        self.navigationItem.backBarButtonItem = backB;
        [backB release];

Assume I created a disconnect() function already.

But if I use leftBarButtonItem my function gets called. Is this because the 
backBarButton item already has its function to dismiss the view? Can't I 
override it somehow?


Thanks,
Charisse



_______________________________________________

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

Reply via email to