Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to turn on iPhone Retina in iOS Simulator?

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

iphone 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!

ipad simulator

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

like image 633
JoJo Avatar asked Apr 19 '11 01:04

JoJo


2 Answers

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%.

like image 128
Nick Avatar answered Oct 22 '22 01:10

Nick


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.

like image 41
Ryan Wersal Avatar answered Oct 22 '22 01:10

Ryan Wersal