FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Unable to show dialog from a modal page · Issue #1809 · NativeScript/NativeScript · GitHub

Unable to show dialog from a modal page #1809

Description

Reporting from iOS. Calling this function from inside a modal page:

exports.selectPhoto = function() {
  dialogs.action({
    message: "Select new photo",
    cancelButtonText: "Cancel",
    actions: ["Take photo", "Select from Photos"]
  }).then(function (result) {
    console.log(result);
  });
};

Will give me the error:

Warning: Attempt to present <UIAlertController: 0x7cbd3a00> on <UIViewControllerImpl: 0x7b7a88b0> whose view is not in the window hierarchy!

What is this, and how do I fix it?

Thanks in advance!

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions


      Back | FazBrowse Home | New Git URL