开发者

How to turn on iPhone Retina in iOS Simulator?

开发者 https://www.devze.com 2023-02-27 02:25 出处:网络
I built and ran an iOS 4.3 app in Simulator. It initially brings up an iPhon开发者_StackOverflow社区e 4 shell. Although all real iPhone 4s have retina display, this simulated iPhone 4 only has a resol

I built and ran an iOS 4.3 app in Simulator. It initially brings up an iPhon开发者_StackOverflow社区e 4 shell. Although all real iPhone 4s have retina display, this simulated iPhone 4 only has a resolution of 320x480.

How to turn on iPhone Retina in iOS Simulator?

I look in Hardware > Device. There's a checkmark next to the normal iPhone. So I'm using an iPhone 4 case but displaying normal iPhone resolution? I'm already confused!

  • iPad
  • ✔ iPhone
  • iPhone (Retina)

I then switch over to iPhone (Retina). Strangely, it opens iPad with the same 320x480 resolution. Both the shell and the resolution are wrong here!

How to turn on iPhone Retina in iOS Simulator?

How am I supposed to turn Retina on and off and show it in the right shell?


iPhone (Retina) is the correct device to be choosing, but I'm not sure why Apple decided to use the iPad shell for that one. To enter 640x960 mode, go to Window > Scale and set it to 100%.


The iOS Simulator does indeed scale. I have no real reason to present on why it would choose the iPad shell, but the purpose of the scaling is to make sure it fits on your screen and stays (relatively) close to handset sizes. Be sure to check Window -> Scale and set it to whatever you find appropriate.

0

精彩评论

暂无评论...
验证码 换一张
取 消