I'm developing an app using Sencha touch 2 and Phonegap for iOS. The splash screen works fine on both iPhone and iPad on iOS 5 and 6, and on iPhone on iOS 7, but it shifts horizontally (from left to right on about 5-10px) on iPad on iOS 7.
During the experiments I found out it uses 2 files for splash screens: at first it takes the one for iOS 7, and after that the file for iOS 6 and 5. As these files have different sizes, the splash screen shifts when files are changed.
Is there any way to fix it? I have all files set up and with correct sizes:
The problem was solved by adding "Portrait" and "Landscape" splash screens for iPad with iOS 5 or earlier:
Your version of Phonegap does not know how to find the iOS 7 launch images, and stumbles onto the iOS 5/6 file. I solved the problem in Cordova 2.9 by changing the following lines (starting at line 129) in CDVSplashScreen.m from
imageName = #"Default";
}
if (CDV_IsIPhone5()) {
imageName = [imageName stringByAppendingString:#"-568h"];
to
imageName = #"Default";
}
if(IsAtLeastiOSVersion(#"7.0")) {
imageName = [imageName stringByAppendingString:#"-700"];
}
if (CDV_IsIPhone5()) {
imageName = [imageName stringByAppendingString:#"-568h"];
Related
while open the old version project in to ios 9 the splash screen was shows in black screen and it displays the images in multi colors,please anyone help me for find the issue?
There is a change in Xcode7 iOS 9 onwards. They have modified Launchscreen(Black screen we will get).If you change deployment target means you can see the previous launch screen.
Only empty view controller is present so we have make changes on it.
I have solved the problem.
I am using Xcode 7 and my iPhone 6 is upgraded to IOS9. I was using Launchscreen.storyboard and was getting Black LaunchScreen.
I solved it by following steps:
1. I removed Launch screen interface file base name from info.plist
2. Under General Tab,in Launch ScreenImage use assets Catalogs, I set
images for iOS 8,iOS 7 and iOS 6 iPhone portrait.
My app is now running successfully with LaunchScreen.
I had the black launch screen issue with the new iOS 9 project I built using Unity (5.2). To fix that I added the image that I want to show as the launch image to the LaunchScreen-iPad.xib file's Image view.
I didn't find any solution for my problem anywhere in Stack Overflow or other sites. So here is the problem:
I am developing an iOS Universal app, portrait orientation only. When I run it on iOS 8.3 simulator window and all other views layout seems to be normal.
But when I run the same app on iOS 7.1 simulator, which I downloaded from developer's site for Xcode 6, the window height seems to be approximately 100 px smaller.
I checked the couple of view frames for both simulators.
7.1 simulator was returning width = 320, height = 480
8.3 simulator returned width = 320, height = 568
I am using storyboard and constraints.
I am pretty sure that a lot of people had this problem, so I am hoping to hear some useful advices from you.
Check out the screenshots below:
Added Answer as per Brian Tompsett - 汤莱恩's Suggestion.
Solution is already done on comments.
iOS 7.x does not support LaunchScreen.xib
So, Manually add the LaunchScreens in the assets folder and you will get desired output.
Go to Project settings --> Target --> App Icons and Launch Images
Launch Image Source was empty so, open it and chose to Migrate from Images.
So now window height is back to 568 on iOS 7.1 simulator
I'm building an iOS app using as3 and air to package the app onto my iPhone 6. My issue is that I get a black bar above and below the app, the app itself is not going fullscreen. The stage screen is set to the iPhone 6 screen dimensions.
I have tried by adding the following launch images into the app folder; Default-667h#2x.png, Default-568h#2.png, and Default#2x.png. In the AIR for iOS Settings under general, I've added them to the 'Included files' section but the bars are still there. Dropbox link to image.
Does anyone have any fixes for this?
iPhone 6 requires the Default image of Default-375w-667h#2x.png to be included. (and iPhone 6+ needs Default-414w-736h#3x.png).
This is a handy web page to bookmark which lists file sizes and names.
http://blog.tomasmahrik.com/list-of-properties-sizes-for-application-icons-launch-images-screenshots-video-previews-for-ios-air-apps/
You should set your apps to not scale (looks like yours is scale to fit) and align top left:
stage.align = StageAlign.TOP_LEFT;
stage.scaleMode = StageScaleMode.NO_SCALE;
Resently had the same problem and splash screens didn't help. For me solution was only this How do I create launch images for iPhone 6 / 6 Plus Landscape Only Apps?
I have an iOS Cocos2D app designed to run in landscape mode. When simulating the app on an iPhone 5 device, I use the following code to get the screen dimensions:
CGSize screenSizeInPixels = [CCDirector sharedDirector].winSizeInPixels;
Execution of this code yields a screenSizeInPixels.width = 1136.0f and a screenSizeInPixels.height = 640.0f. But when I simulate/execute the same code in Xcode 6, I get just the opposite: a screenSizeInPixels.width = 640.0f and a screenSizeInPixels.height = 1136.0f.
Why are the pixel dimensions reversed?
This is a Bug in iOS SDK:
https://github.com/cocos2d/cocos2d-swift/issues/973
One Solution in that manually set the desired orientation in the info.plist, then everything seems to work ok. It works for me.
I have an app designed for universal devices.And I have all of the different dimensions of the launch images and app icons ready.
It was fine running on iphone 4, iphone 5 with iOS 7 devices and iphone 5 with ios 6.1
then, i found it was running not full screen (3.5 instead of 4 inches ) on the new ipod 5th generation with latest ios 7.
i update the project to use Images.xcassets then the problems solved.the app was running full screen.
However, it started only runs 3.5 inches (not full screen app) on iphone 5 with ios 6.1
[[UIScreen mainScreen] bounds].size.height
return 480 instead of 568
Any ideas ?
When using Xcode assets catalog, you need to be careful when setting up launch images. It is possible to have different launch images for iOS6 and iOS7. If you wish to use the same ones, make sure to link them correctly for each OS version.
i found you have to have 2 different names for the retina 4-inch launch image (640x1136). how annoying.
This issues was solved for me when I deleted the LaunchImage asset which contained 8 sets of images.
Which I then replaced with a new LaunchImage (using two finger click) containing only 3 image sets.