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

Wrong splash screen shown on iPhone 5

    XMLWordPrintableJSON

Details

    Description

      When running on a iPhone 5, the Splash screen show is the Default.png instead of the Default-568h.png file.

      To fix, in the CDVViewController.m file, in the showSplashScreen function, look for this bit of code:

      else // not iPad
      {
      orientedLaunchImageFile = launchImageFile;
      }

      and change it to

      else // not iPad
      {
      if ( [UIScreen mainScreen].bounds.size.height == 568 ) // or some other method of determining if on iPhone 5

      { orientedLaunchImageFile = [NSString stringWithFormat:@"%@-568h", launchImageFile]; }

      else

      { orientedLaunchImageFile = launchImageFile; }

      }

      Attachments

        Activity

          People

            shazron Shazron Abdullah
            gaz Gary Smith
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: