iPhone 5.1 Simulator (retina) looks so big

自闭症网瘾萝莉.ら 提交于 2019-12-04 20:41:08

问题


I just upgraded Xcode from 4.2 to 4.3.3. I then launches iOS Simulator (with "Hardware -> Device" set to "iPhone (Retina)") and the simulator now appears so big that the app page has literally to be scrolled!! (previously it was just right ...no scrolling needed). Even the 'Home Page' in the simulator seems to need scrolling! Here's the screenshot...note that the 'home page' has the scroll bar in the right and bottom) ...why is this? Shouldn't it fit exactly and not need any scrolling?


回答1:


I have a 17" laptop that is 1920x1200 resolution, the newest iPad has a resolution of 2048x1536. The iPad actually had many more pixels in EITHER direction as my laptop.

The new simulator is DEFINITELY trying to show you all pixels, and most likely in a 1-to-1 fashion, which is most definitley going to take the simulator OFF SCREEN.

Pixel Density and total pixels is the answer!!!




回答2:


You can use Command-1 or Command-2 to scale your view down. Also you are able to change your device to non-Retina iPhone/iPad in Hardware-Device.




回答3:


My guess would be that the retina display simulator has a higher pixel density than your monitor but still attempts to show every pixel, so it has to take up more space.



来源:https://stackoverflow.com/questions/11265751/iphone-5-1-simulator-retina-looks-so-big

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