migueldeicaza / MonoTouch.Dialog

Tools to simplify creating dialogs with the user using MonoTouch
MIT License
430 stars 211 forks source link

DialogViewController::ActivateController() limitation #232

Open snailium opened 9 years ago

snailium commented 9 years ago

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.