简体   繁体   中英

Bottom part of view is cut off in simulator and on device (Single view application)

Here is what my storyboard looks like:

在此处输入图片说明

When I run it on the iPhone Retina simulator this happens:

在此处输入图片说明

The same things happens when running it on my iOS device as well.

I followed the " Your First iOS App " guide on Apple to the letter. I can't seem to figure out why the bottom part is cut off. Is there some new view changes I need to do for iOS 7? I'm using Version 5.0 (5A1412) with iOS 7 GM.

You're running it on the 3.5" Simulator, and looking at your Storyboard it looks like it's designed for the iPhone 5 4" size. There's a button at the bottom of the Storyboard editor that changes the size you're designing for, that'll show you where it's cutting off. 在此处输入图片说明

Click on your button and change the autosizing like below. This will push it up automatically.

像这样按一下您的按钮,它将被向上推

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