[MonoTouch] how can i add an action when dv disappears?

Jeff Stedfast jeff at xamarin.com
Wed Oct 19 10:10:35 EDT 2011


Hi Andreas,

You could subclass DialogViewController and override the ViewWillDisappear()
and/or ViewDidDisappear() methods.

Hope that helps!

Jeff

On Wed, Oct 19, 2011 at 10:05 AM, Andreas Ploetzeneder <
info at ploetzeneder-it.com> wrote:

>  public class LoginView
>
> {
>
>  public DialogViewController dv;
>
>  public LoginView ()
>
>  {
>
>    var root = CreateRoot ();
>
>   dv = new DialogViewController (root, true);
>
>    }
>
>  RootElement CreateRoot ()
>
>  { return new RootElement ("Settings") {
>
>   new Section (){
>
>   new BooleanElement ("Airplane Mode", false),
>
>   new RootElement ("Notifications", 0, 0) {
>
>    new Section (null, "Turn off Notifications to disable Sounds\n" +
>
>         "Alerts and Home Screen Badges for the\napplications below."){
>
>    new BooleanElement ("Notifications", false)
>
>    }
>
>   }}} ;
>
>  }
>
> _______________________________________________
> MonoTouch mailing list
> MonoTouch at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/monotouch
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/monotouch/attachments/20111019/3c838747/attachment-0001.html 


More information about the MonoTouch mailing list