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

Update splashscreen image bounds for iOS 7

    XMLWordPrintableJSON

Details

    Description

      See code from this thread: http://markmail.org/message/khqi5vpubxp2qppk

      diff replicated below:

      diff --git a/CordovaLib/Classes/CDVSplashScreen.m
      b/CordovaLib/Classes/CDVSplashScreen.m
      index fdb79fa..809ce35 100644
      --- a/CordovaLib/Classes/CDVSplashScreen.m
      +++ b/CordovaLib/Classes/CDVSplashScreen.m
      @@ -170,7 +170,9 @@
           // There's a special case when the image is the size of the screen.
           if (CGSizeEqualToSize(screenSize, imgBounds.size)) {
               CGRect statusFrame = [self.viewController.view
      convertRect:[UIApplication sharedApplication].statusBarFrame fromView:nil];
      -        imgBounds.origin.y -= statusFrame.size.height;
      +        if (floor(NSFoundationVersionNumber) <=
      NSFoundationVersionNumber_iOS_6_1) {
      +            imgBounds.origin.y -= statusFrame.size.height;
      +        }
           } else {
               CGRect viewBounds = self.viewController.view.bounds;
               CGFloat imgAspect = imgBounds.size.width / imgBounds.size.height;
      

      Attachments

        Issue Links

          Activity

            People

              shazron Shazron Abdullah
              shazron Shazron Abdullah
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: