Simulator running in scaling mode for iPhone 6 Plus?

前提是你 提交于 2019-12-18 19:06:27

问题


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?


回答1:


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.




回答2:


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:




回答3:


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




回答4:


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+



来源:https://stackoverflow.com/questions/25752986/simulator-running-in-scaling-mode-for-iphone-6-plus

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!