I have a problem - my app got rejected 3 times for the same reason, "Selecting the Action button does not produce an action". Apple said the "share button" isn't working as well. On my devices (ipod 4 + ipod 5) and the iphone simulation, the share button works, and opens an action sheet view with 3 options to choose from, and they all work fine.
The share button is a UIBarButtonItem and stand on the UINavigationBar. the back button and the star button work great, but still the share button is not responding and doesn't produce any action.
This is my app screenshot.
This is my button code:
UIButton *rightButton = [UIButton buttonWithType:UIButtonTypeCustom];
rightButton.frame = CGRectMake(0, 0, 33, 22);
[rightButton setBackgroundImage:[UIImage imageNamed:@"btn_share.png"] forState:UIControlStateNormal];
[rightButton setBackgroundImage:[UIImage imageNamed:@"btn_shareSelect.png"] forState:UIControlStateHighlighted];
[rightButton addTarget:self action:@selector(share) forControlEvents:UIControlEventTouchUpInside];
UIBarButtonItem *rightItem = [[UIBarButtonItem alloc] initWithCustomView:rightButton];
self.navigationItem.rightBarButtonItem=rightItem;
What can I do? Is there a way to solve this?