ios - UINavigationController add Right button -
I know this question was asked many times but I could not find my status: I have 1 in the main window The UIAV controller is the main window- ?? Atoms also UITableView when I select the row, navigation controller pushes another UIViewController with nib. This UIViewController is not a navigation controller, it's only inside UITableView.
Here is a screenshot of this UIViewController:
This is not the main window. UINavigationController with UITableView in the main window.
And here's the question:
When I add UIBarButtonItem to the NavigationalTime, am I pushing UIViewController?
Create an UIBarButton instance inside that extension view controller's .m file, and do it yourself set on. NavigationItem rightBarButtonItem You can do it in the init method.
UIBarButtonItem * barButton = [[UIBarButtonItem alloc] initWithTitle: @ "Heading" style: UIBarButtonItemStyleBordered Target: Self operation: @selector (someMethod)]; Self.navigationItem.rightBarButtonItem = barButton; [Barbeton release];
Comments
Post a Comment