简体   繁体   中英

iPhone simulators don't match Xcode preview

My word wrapping UILabel appears as expected in Xcode's new preview feature. However when launching on different sized iPhone simulators, the word wrapping is always at the same point:

Xcode预览

iPhone 4s(比赛预览)

iPhone 6 Plus(与预览不匹配,与4s相同)

Why doesn't launching this in the simulator match the preview?

This is because you have not "enabled" your app for iPhone 6 and 6+ device sizes.

You will notice that when you start the app on the iPhone 6+ simulator the status bar is a lot bigger in your app than when in the home screen. This is because it just uses the interface for the smaller device and scales it up to be the size of the bigger device.

To "enable" it you need to add a launch image for the iPhone 6 and 6+ sizes.

You can do this either with your asset catalog or by using a launch interface file.

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