开发者

UINavigationController

开发者 https://www.devze.com 2023-04-04 06:14 出处:网络
I have a few items on my navigation stack, when I press the Home button and then re-enter the application, how do I know what item/navigation item is开发者_开发知识库 currently shown?

I have a few items on my navigation stack, when I press the Home button and then re-enter the application, how do I know what item/navigation item is开发者_开发知识库 currently shown?

I've tried using the NSNotificationCenter but its not working as I'd like. If I register an observer on the controller, each time the application becomes active this is fired but I would like it to fire only if its on the current item on the stack.

I've also tried using the windows.subview but when you compare the type of UIView against the subview it doesnt always work. i.e. if([windows.subviews objectAtIndex:0] == controllername.view)

0

精彩评论

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

关注公众号