Hm, the delegate only tells you which controller was pushed. However, you could subclass UINavigationController and override PushViewController() and PopViewController(), as well as PopToRootController() and the ViewControllers property. Then you are able to intercept all pushs and pops and can keep track of what's going on.
René -----Ursprüngliche Nachricht----- Von: [email protected] [mailto:[email protected]] Im Auftrag von MilkyJoe Gesendet: Mittwoch, 9. November 2011 22:47 An: [email protected] Betreff: Re: [MonoTouch] Is it possible to determine whether a view controller has been pushed or popped? Thanks René - I'll take a look. Just to be clear (as my original post was hastily thrown together)... Let's say I have three view controllers; *1*, *2* and *3*. Navigation is controlled by a standard UINavigationController: *1* -> *2* -> *3* I need to be able to tell if view controller 2 has been pushed from view controller 1, or if control is returning from view controller 3 (via the "Back" button). -- View this message in context: http://monotouch.2284126.n4.nabble.com/Is-it-possible-to-determine-whether-a-view-controller-has-been-pushed-or-popped-tp4020524p4021525.html Sent from the MonoTouch mailing list archive at Nabble.com. _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
