Project created under Xcode6 is not adapted the resolution under ios7? [duplicate] - ios

Steps to reproduce:
Create a new project using Xcode6 (single view template, iPhone only, Objective-C)
Navigate to project settings and change the deployment target from 8.0 to 7.1
Run the application on a iPhone5/S with 7.1 installed or in the iPhone5/s 7.1 simulator (You may have to download the iOS7.1 simulators)
The app appears with black bars on the top and the bottom.
If you run the application on the iPhone5/S 8.0 simulator, the screen will appear as expected, all white.
Why is this happening? Is there a fix or workaround?

I was able to resolve the issue manually, seems like it is a bug with Xcode for now and I will file a radar report.
To resolve the issue, follow the below steps:
Navigate to project settings
Under "App Icons and Launch Images" click on "Use Asset Catalog"
Select "Migrate" on the popup that appears.
This should fix the issue.

I encountered the same problem some days ago and I founded out that the problem in my case was the missing LaunchScreen.xib in General setting under App icons and launch images:

I had the same issue with Xcode 7 beta 1 and the UICatalog sample code and could resolve it by choosing Main.storyboard in General Settings under App Icons and Launch Images for the Launch Screen File.

I've encountered the same issue. It seems that LaunchScreen.xib can't adapt to the screen size of all 4-inch devices under iOS7.

On iOS7 (which I was testing on) if I did not add the 640x1136 image in the LaunchImage assets for iPhone Portrait 7.0 Retina I would get the top and bottom bar. Adding the asset in PNG format resolved the issue on iOS7.

Related

In iOS 9 splash screen shows black and multi colours?

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.

React Native: Unwanted Black border on ipad 2 simulation

I am testing a new (simple) reactive native app, choosing ipad 2 as target in the simulator.
The loading screen shows full screen, but the first application screen (by react native) shows a big black border around the content. I created a completely new project, but it has the same border.
Is this a known issue? Do I need to add something to prevent this border from happening?
EDIT: I have an impression the application is built as an iphone app, but deployed/displayed to an ipad. I see the 1x / 2x button. Probably this is causing it. So probably the first question is: how do I configure xcode that it is actually an ipad app?
Thanks in advance!
Jeroen
Go to Build Settings
Type Targeted Device Family in search bar
Select 1,2
Run the project it should resolve your issue.
The application was being built as an iphone app, but deployed/displayed to an ipad. I see the 1x / 2x button. This was causing it. So: how do I configure xcode that it is actually an ipad app? See url below:
How to change iPhone/iPad app to iPhone only?
Now with newer version of XCode. Build Settings -> Targeted Device Family -> Select Universal.
I had this issues and solved it with this way,
Go to XCode, and General tab
In App Icons and Launch Image sections,
2.1. Click the dropdown Launch Image Source, and a pop up
will come out, click Migrate
2.2. Click the dropdown Launch Screen File, and select the very first one
Go to Build Settings Type Targeted Device Family in search bar Select 1,2
I had this issues after updating assets for AppIcons and SplashScreen
Hope it helps!

Black bars appear in apps upgraded to work with iPhone 6/6+ resolutions [duplicate]

When iPhone 5 first came out we had to go through the silliness of adding a Default-568h#2x.png to the project to get the app to use the full height of the iPhone 5. In late 2014 are we still doing that?
We have asset catalogs and the LaunchScreen.xib file. Do we still need to add the Default-568h#2x.png file? If so, where does it go now? I've tried a few different things and I can't get rid of the black bars in a new app created with Xcode 6 GM.
As stated by rmaddy in the comments, if you are supporting iOS < 8, you still need to do this:
General / App Icons and Launch Images
Launch Image Source - select LaunchImage for asset catalog.
Add a 640x1136 image for the "Retina 4" option.
So I guess the LaunchScreen.xib is useless if you target iOS < 8, unless you want to update both that and the asset catalog when the image changes.
if you are not creating new Project,
like changing or rename old Project,
you should remove all Images.xcassets from Project.
then
Navigate to project settings
Under "App Icons and Launch Images" click on "Use Asset Catalog"
Select "Migrate" on the popup that appears. make new Asset.
it work pretty fine for me.
env is
xocde6.1 iPhoneSimulator5/5S/6/6+ on iOS8

iOS simulator showing different sizes on 7.1 than 8.0

With Xcode 6.0 I took advantage on the component options and downloaded the iOS simulator for 7.1 as well, now If I select on Deployment target "7.1" it lets me select iOS simulator 7.1, but there a problem with this note on the two pictures one with the 7.1 and the other with the 8.0 how the image shrinks, its this normal?
The only thing that I have changed on this projects its that I unchecked "Use Size Classes" and left it with iPhone only.
Please advice.
Thanks
Updated pictures.
#rmaddy is right.
You need to set a splash image instead of using the LaunchScreen.xib.
Go to your project settings -> target -> App Icons and Launch Images, change "Lauch Images Source" by clicking "Use Asset Catalog", select Images.

IOS 7 Black bars at the top and bottom (running 3.5 only)

I seem to have some across and interesting issue that I can not resolve. I have a app written in XCode 5 running ios 7.1.
The app was working perfectly until I moved the folder location of the project. When I ran up the app on my phone the app worked perfectly but now I no longer get a app icon, launch image and the whole thing seems to only run in 3.5" mode as well, even on my phone (5S). I get black bars at the top and bottom.
I have renamed the folder that the project now sits under back to the original name but this issue has not gone away.
I was wondering if anybody else has ever come across this??
Cheers
Geraint
It seems your pbxproject got a bit messed up (maybe you had absolute paths used ? )
Select your target in Xcode.
Under general, App Icons , re-assign the launch images.
The clean and rebuild your project.
Check this link out as well :
Black bars showing when running app on iOS 7 (4 inch retina display)
I was able to resolve the issue manually, seems like it is a bug with Xcode for now and I will file a radar report.
To resolve the issue, follow the below steps:
Navigate to project settings
Under "App Icons and Launch Images" click on "Use Asset Catalog"
Select "Migrate" on the popup that appears.
This should fix the issue.

Resources