AdamM
AdamM

Reputation: 4430

Xcode 4.5 New Simulator not displaying properly

I have just finished installed xCode 4.5 and have been trying to understand the new simulator. I want to test my app in the old screen size and new screen size. However when under the simulator I go to hardware and change the phone size to the 4 inch size, it changes the simulator to take up the full screen, has no home button, is zoomed in, and I have to scroll to navigate which is really frustrating and annoying.

From this

enter image description here

To this

enter image description here

Could someone tell me if this is meant to happen? I want to maintain the normal iPhone look with the simulator, that zoomed in scrollable simulator is terrible, looks horrible and makes debugging a pain. I am sure Apple would not allow something this poor looking to be the normal look for the simulator so I am guessing I am doing something wrong.

The other problem with it is, if I am on the home screen where I can see a list of custom apps under normal iPhone screen size, then change it to the 4 inch simulator screen size, the custom apps I installed on the simulator are not showing for some reason.

Any help would be much appreciated!!

Edit:

I found I change the scale of the simulator under window and changing it to 50 or 75%. However one problem remains, why is there no home button in the iPhone 5 simulator?

Upvotes: 8

Views: 15960

Answers (7)

Nabin
Nabin

Reputation: 11776

Not sure if this is long term solution, but the following steps helped me.

  1. Go to Windows >> Scale
  2. Select different options as per your wish (I chose 75%)

Upvotes: 0

jjk
jjk

Reputation: 536

I think this is related to retina display setting ...

When I started the iOS simulator on my macbook pro (w/rd), the iPhone frame came up. I moved the frame over to my attached monitor and it stayed as an iPhone frame. I shut xCode down.

When I restarted, the iOS simulator started up on my attached monitor and lacked the phone frame, just showing the screen. Scaling up or down did not matter.

I moved the unframed screen over to my laptop screen again, and shut down the simulator. When I started it back up, it started on the laptop screen with the phone frame.

I don't think it is related to resolution so much as retina display.

Upvotes: 0

Yasser Amer
Yasser Amer

Reputation: 111

This Worked for me:

  1. Go to Simulator Menu
  2. Go to Hardware
  3. Click Device
  4. Click IPhone

This will restore the iPhone Simulator frame.

Upvotes: 6

Trausti Thor
Trausti Thor

Reputation: 3774

This just happened to me and I did spend a while trying to figure this one out. By setting the scale to 100% my issue got fixed as Cal said above.

Upvotes: 1

Ray Mckaig
Ray Mckaig

Reputation: 63

What worked for me was...

  1. Go to XCode,
  2. Open the main XCode menu option
  3. Click on "Open Developer Tool"
  4. Click on "iOS Simulator"
  5. Change to the simulator you want by going to the "Hardware" menu.
  6. Close the simulator
  7. Run your project again.

XCode was crashing on me when I switched to the non-retina iPad option and this was my solution.

The simulator seems to remember the last hardware option that was chosen.

Upvotes: 4

Cal
Cal

Reputation: 188

What computer are you working on ? I've got a 13'' MacBook and the same thing occurred to me. Some topics say it is related to your screen resolution, and if your screen is "too small" then the simulator won't see the need in a frame representing the physical device. See Nathan Gopen's answer in XCode 4.3.1 iPad simulator. (I also noticed that the frame disappears when you re-scale standard iPhone to 75% or 50%.)

If you need the home button you can find it in Hardware > Home Button, or Shift+Cmd+H. Yeah, I know, it sucks...

Upvotes: 10

Gerd
Gerd

Reputation: 328

I don't think it's related to the screen resolution. I'm running it on 1920x1200 and it's the same. I guess it's simply to reduce effort for Apple since it's not essential for development to have a nice looking simulator. But yes, I agree I loved to see a virtual iPhone as simulator. And it was quite easier to produce screenshots of your Apps for your website.

Zooming or scrolling is of course not required on a 1920x1200 screen.

Upvotes: 1

Related Questions