How to place a navigationItem in Navigation Bar programmatically in Objective-C?
How can I add a NavigationBar with a NavigationBarItem in a NavigationController, such that when I push my navigationItem I should get my previous view without using Inte开发者_运维问答rface Builder in Objective-C
There is no need to programmatically add a NavigationBarItem
for the back-button. This will be automatically added to the UINavigationBar
by the framework itself. Simply provide a value for your title
property of your base view an you'll see a matching button in the pushed navigation view.
精彩评论