migueldeicaza / MonoTouch.Dialog

Tools to simplify creating dialogs with the user using MonoTouch

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DialogViewController::ActivateController() limitation

snailium opened this issue · comments

Current implementation requires parent controller to be Navigation Controller. But it is not necessary.

It can be revised to

        if (this.NavigationController != null)
            this.NavigationController.PushViewController (controller, true);
        else
            PresentViewController (controller, true, null);

to remove the limitation.