9 Replies Latest reply: Oct 9, 2012 4:06 AM by mapg
mapg Level 1 Level 1 (0 points)

I have a UITabBarController with 4 UINavigationControllers in it. I successfully added a right UIBarButtonItem in the navigation bar of one of the controllers but it appears disabled and I can't click it. I've already tried to set enable property to true but nothing works...

 

Did someone already had the same problem? I'm struggling with this for hours...

 

Here's the code:

 

self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAction target:self action:@selector(socialShare)];

 

And a screenshot:

 

ss.png

 

I'll be waiting for an answer.

 

Thanks for your help!


iOS 4.3