简体   繁体   中英

iPad simulator showing black screen on the left?

在此处输入图片说明

Hi, I'm making an iPhone/iPad app. However in the iPad simulator the screen is showing black screen on the left for no apparent reasons. I launched the app with iPhone simulator and it works fine.

Here are some of the things I did:

  1. The orientation is landscape mode. It is set under General settings with landscape left and landscape right checked. It is also set to landscape in the iPad storyboard view controller Orientation.

  2. There is a navigation controller and on top is the main view controller. So I suppose the black screen is the navigation controller if not mistaken.

Does anyone has any idea on what went wrong and how to fix it? Thanks in advance.

You designed a UI for the iphone which has a much smaller screen than the ipad and thus it "feels in the gaps" with black. Use the layout tools to make your view spread to the entire screen automatically to fix this.

EDIT:

Here are some useful tutorials

that I used to get me started on auto layout

For some reasons, when launching the app on the iPad device. It works fine.

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