开发者

UINavigationController Method Issue

开发者 https://www.devze.com 2023-01-08 01:26 出处:网络
Is there a way to customize th开发者_JAVA百科e method that is called when someone touches the back button in my UINavigationController? I need to check which nib is being loaded so I can configure the

Is there a way to customize th开发者_JAVA百科e method that is called when someone touches the back button in my UINavigationController? I need to check which nib is being loaded so I can configure the UINavigationController properly (mainly set the navigation bar to hidden for one view).


There are many ways to do that:

1/ When you click the back button, some view will be called with viewWillAppear:, check for that view.

2/ The navigationController holds a list of UIViewController, just get the second top UIViewController

3/ the back button item will point to a UINavigationItem, get that UINavigationItem, using the title, you can decide which views you are in

0

精彩评论

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