Hi Bill, On 19 May 2012 07:54, Bill Holmes <[email protected]> wrote: > You could scan the ViewControllers stack looking for your instance. > > _rootDVC.ViewDisappearing += delegate { > foreach (UIViewController ctrl in _navController.ViewControllers) > { > if (ctrl == _rootDVC) > { > Console.WriteLine ("Did not pop"); > return; > } > } > > Console.WriteLine ("Did pop"); > };
Thanks for the idea. It triggered an even simpler solution to my specific case. I just have a boolean '_isPopped' which is false when the controller appears first time. Setting it to true provides a very convenient mechanism to know whether it is appearing back rather than new. Very simple, convenient and straightforward. Thanks again for the trigger :) With kind regards, Guido -- Do not worry about which side your bread is buttered on: you eat BOTH sides. http://vanhoecke.org ... and go2 places! _______________________________________________ MonoTouch mailing list [email protected] http://lists.ximian.com/mailman/listinfo/monotouch
