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
204 views
in Technique[技术] by (71.8m points)

ios - I have a xib file that I am trying to resize for iPhone 5

I have tried many different methods, if anyone can give me a method that worked for you please help me.

See Question&Answers more detail:os

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

1 Reply

0 votes
by (71.8m points)

Don't create a separate Xib for iPhone 5. Instead, add a splash image named Default-568h@2x.png. That will identify your app as one that supports iPhone 5 metrics.

When the app is loaded - either on an iPhone 5 device - or on the sim with Retina 4-inch display, you will see your app running in full 568 pixel height mode.

You may see some empty spaces, or buttons in the wrong place, and so on. That's because you have not configured the autosizing properties correctly in Interface Builder. Be sure to do that, using the controls below to specify the "sticky-ness" of the the controls, and how they should expand into the additional space.

Autosizing controls


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

...