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

[StatusBar] Fix iOS8 Deprecation Warnings

    XMLWordPrintableJSON

    Details

      Description

      Issue has been around for a while
      https://github.com/apache/cordova-plugin-statusbar/pull/26

      After use Cordova build ios
      there are some warning about UIDeviceOrientation and UIInterfaceOrientation:
      Implicit conversion from enumeration type "UIDeviceOrientation"(aka "enum UIDeviceOrientation") to different enumeration type "UIInterfaceOrientation" (aka "enum UIInterfaceOrientation")

      Based on current ios api, UIViewControl.interfaceOrientation has been deprecated.

      Fixed those warning using function: [[UIDevice currentDevice] orientation] instead of self.viewController.interfaceOrientation

        Attachments

          Activity

            People

            • Assignee:
              jcesarmobile jcesarmobile
              Reporter:
              jordancardwell jordan cardwell
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: