Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
351 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 Default-568h@2x.png 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 Reply

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

1.4m articles

1.4m replys

5 comments

56.9k users

...