Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-9978

Error accessing UIWindow when debugging on device

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Won't Fix
    • 5.1.1
    • None
    • cordova-ios
    • OS X 10.10.5, Xcode 7.1 & Xcode 6.4, iOS 8+, iPod Touch 6th Gen

    Description

      I added iOS code that takes a screenshot of everything in the UIWindow. This functionality works fine when running in the simulator, but when I run the functionality on the device I get some odd behavior.

      When I run on the simulator I am able to convert the UIWindow to a UIImage. I am also able to preview the UIWindow in the Xcode debugger. When running on a device the creation of the UIImage fails. I'm unable to see a preview of the UIWindow in the Xcode debugger.

      Sorry if my description of the error was not clear. Let me know if I can provide more detail.

      Thanks!

      Attachments

        1. WindowTest.zip
          1.10 MB
          Dylan Bettermann

        Activity

          People

            Unassigned Unassigned
            dylan.bettermann Dylan Bettermann
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: