You don't. That's not the way to do it. You should know when you are about to 
show a new view. Before doing that, check if it is okay. Maybe add a method 
that takes the view to show (or whatever) and a delegate that represents the 
check to perform before showing the new view. If the delegate returns false, 
don't show the view. That way you separate your code better. 

Grüße, René

Am 16.12.2011 um 12:45 schrieb Richard <[email protected]>:

> I would like to check some things on a view before leaving this view.
> 
> I guess i could use viewwilldisappear.
> 
> but if i want to cancel this proces and let the user stay on the view, 
> What is the best way to do this?
> 
> Richard
> 
> 
> 
> --
> View this message in context: 
> http://monotouch.2284126.n4.nabble.com/prevent-leaving-a-view-tp4204269p4204269.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

Reply via email to