开发者

How to place a navigationItem in Navigation Bar programmatically in Objective-C?

开发者 https://www.devze.com 2022-12-22 08:23 出处:网络
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 i

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消