Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
342 views
in Technique[技术] by (71.8m points)

iphone - black space in IOS app in 4inch Screen

I am creating an App for IOS7 for both retina 4inch and 3.5 inch, when my target version is IOS7 every thing wrks fine. But when i set the version below 6.1 then there is a white space at the top and bottom bar. when i run it in IOS6.1 Simulator 4inch i get something like this. I have the [email protected] for IOS6.1 and prior also in place. I am using Xcode 5DP

enter image description here

Screen shot when app has target version 7 enter image description here

Any help will be appreciated

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

To solve this issue you have to specifically add background images for iOS 6, Follow following steps to add this using new xCode.

1) Add new image set from asset catalog and name it "Default" image set

2) Right click on that asset catalog image.

3) Choose iPhone, Retina 4 - inch from options like following

enter image description here

4) Add images in sequence with resolutions

  1. 320 * 480

  2. 640 * 960

  3. 640 * 1136

5) Clean your project

6) Run your project


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...