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

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -