Simulator running in scaling mode for iPhone 6 Plu

2019-02-12 07:01发布

My app starts and runs on the new iPhone 6 Plus (or iPhone 6) in the simulator, but elements that I know are supposed to be small on the big screen (i.e. hard coded CGRects) are large, as if the whole app had just been scaled up for the larger screen.

How can I get out of scaling mode in the simulator?

4条回答
一夜七次
2楼-- · 2019-02-12 07:39

use Asset Catalog Creator from mac app store.

https://itunes.apple.com/gb/app/asset-catalog-creator-app/id809625456?mt=12

give it any image and it will generate all the correct launch images and icons in a xassets file.

This should stop the scaling of the whole app on iphone 6+

查看更多
Ridiculous、
3楼-- · 2019-02-12 07:41

It looks like setting a launch screen file in the "App Icons and Launch Images" section of your project settings, or adding iOS 8 images to your launch image catalog, will enable "native" resolution.

查看更多
Juvenile、少年°
4楼-- · 2019-02-12 07:53

Adding a correctly sized LaunchImage seems to be enough (setting an incorrectly sized image won't).

Also adding the new "Launch Screen File" should work:

enter image description here

查看更多
beautiful°
5楼-- · 2019-02-12 07:57

You must set correctly sized LaunchImages
For more information about LaunchImages and icons see this documentation

https://developer.apple.com/library/IOs/documentation/UserExperience/Conceptual/MobileHIG/IconMatrix.html

查看更多
登录 后发表回答