开发者

UINavigationController

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜