Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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?

like image 465
AdamM Avatar asked Sep 20 '12 11:09

AdamM


People also ask

How do I show simulator in Xcode?

Open Xcode and click Menu > Xcode > Preferences > Select Components, and then choose the simulator version you want to download.

How do you refresh iOS simulator?

Selecting Reload (or pressing ⌘ + r in the iOS simulator) will reload the JavaScript that powers your application.


3 Answers

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

like image 80
Cal Avatar answered Jan 12 '23 11:01

Cal


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.

like image 25
Yasser Amer Avatar answered Jan 12 '23 11:01

Yasser Amer


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.

like image 45
Ray Mckaig Avatar answered Jan 12 '23 11:01

Ray Mckaig