简体   繁体   中英

Why Assistant preview fails?

my assistant editor show me the right way I want my apps look like in big screen, but in the emulator or real device isn't the desirable results. Why? That's only an example, i Will this behavior in all my view controllers. NO, simulators hasn't the zoom mode feature so It can't be zoom mode.

RIGHT assistant editor:

在此处输入图片说明

WRONG simulator behavior:

在此处输入图片说明

The assistant preview doesn't fail, but the simulator zooms your app (you can see it at the size of the status bar).

You probably did not include a launch image for 4,7" and 5" screen devices. If the app can't find these launch images, it will run the same as on a 4" screen and zoom it to fit the device.

The assistant editor does not look for those images, as it's simply a render of your storyboard with the constraints you set.

Add the launch images for the 4,7" and 5" screens and the app will look fine on the simulator. You can also use a .xib file to generate a launch image for iOS 8+.

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