简体   繁体   中英

Layout for iPhone5 vs iPhone4

In iPhone5 storyboard main view controller view, I have a dragged UIControls like UIButtons and others. The controls fill out the whole space all the way to bottom of the screen. Well, on the iPhone 4 obviously the bottom portion of my view won't show due to smaller screen. What is the right way to handle this so it shows on both devices correctly?

I think you have problem with View ResizingMask. You have to set autoResizingMask .

You can refer to this AutoResizingMask Related Question

This will help you alot. Try to set the autoResizingMask of control through xib. Sure you will get rid of your problem..!! Enjoy Coding

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM