ios - BarButtonItem not connecting -
I have a navigation controller, the root view, and then the main menu, pressing a button allows a tab bar controller to go through 2 tabs Opens with, which contains custom table views. I added the title to the navigation bar and then I added a button to the right. So far, so good. The button will be used to show the action sheet. Actually there are many other ways to show action sheets but with that button the thing is that the button is showing the right but I can not trigger an action. This 2 tab will not be connected to the my view controller appointed I have tried to look at the barbuttonitem program in viewdidoad with no luck. How can I program this button to open an action sheet? This Tab Bar Controller Tab Bar -> Navigation Items -> Bar Button is a hierarchy of items.
edit
UIBarButtonItem * actionSheetButton = [[UIBarButtonItem alloc] initWithTitle: @ "Options" Style: UIBarButtonItemStyleBordered Target: Self-Action: @selector (showActionSheet)]; Self.navigationItem.rightBarButtonItem = actionSheetButton;
Comments
Post a Comment