iPhone simulator not showing properly on external display - xcode

I started learning to develop apps for the iPhone, and bought my first mac 2 months ago. So I don't know everything about mac os x.
But my question is when I run the iPhone simulator on my laptop (macbook pro retina 13 inch) it shows the iPhone just fine. But when I connect my macbook to my external display, the simulated iPhone doesn't display correctly.
Screenshot of external display:
Is it possible to show the simulator fully/correctly on my external display? Like this (this is on my laptop screen):
Thanks in advance.

you should be change scale size of the simulator

It appears that the vertical resolution on your external monitor is less than on your laptop. If you increase the vertical resolution, the simulator should display properly.

Related

some part is getting cut in Xcode simulator for ipad retina? using React Native

I am new to react native I just started it, After installing react native in the terminal and I created projects according to that explained in the docs.
When running the project in the Xcode simulator I find some issues I don't to how to rectify it can anyone help me. here are the images of my simulator
it is for iPhone 6
the second one is for iPad retina
when simulating iPad retina last part is cutting how to solve it. any solution is much appreciated
Because your screen is designed for iPhone 5 or 6.
iPad retina support only iPhone 4 screen size in emulation.

Running the iOS 7.0 simulator in XCode5: How to fix the window to display the standard iPhone frame

I'm having difficulty displaying the standard iPhone frame when running the iOS 7.0 simulator in XCode 5.0. I've tried numerous approaches to fix this, including:
Hooking up my laptop to a larger monitor (the screen resolution is 1920 x 1200).
Making sure the window is scaled to 100% (as stated in the Apple Docs).
Selecting each of the different iPhone devices to test it out on.
Adding my own custom .png iPhone image to the simulator by going to Applications > R-click on XCode > Show Package Contents > Contents > Developer > Platforms > iPhoneSimulator.platform > Developer > Applications > R-click on iOS Simulator > Show Package Contents > Contents > Resources.
Still, all the iPhone simulators display as a window (except, quite oddly, the 3.5-inch iPhone simulator which shows up with an iPad frame):
http://imgur.com/q1dhxx8
I've never had this issue before in older versions of XCode. Any suggestions?
Thanks for your help!
The frame only appears if there is a sufficiently large resolution to display both the simulator and frame. On that display, you will only be able to have the frame if you rotate the external 1920x1200 monitor to portrait mode.
To have the frame of a retina 4" phone simulator, have your display in portrait (1200x1920) and rotate the display in OS X by 90 or 270 degrees. Have the simulator in that display. The frame will appear.
That is how all of the retina based devices are displayed in the iOS simulator. It shows all of the retina based devices with no phone frame, like you have seen. All of the devices that run iOS 7 have retina displays, which results in the simulator displaying them the way they do. The simulator with the phone frame is a non-retina example using iOS 6 and prior.

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
To this
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?
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...
This Worked for me:
Go to Simulator Menu
Go to Hardware
Click Device
Click IPhone
This will restore the iPhone Simulator frame.
What worked for me was...
Go to XCode,
Open the main XCode menu option
Click on "Open Developer Tool"
Click on "iOS Simulator"
Change to the simulator you want by going to the "Hardware" menu.
Close the simulator
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.
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.
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.
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.
Not sure if this is long term solution, but the following steps helped me.
Go to Windows >> Scale
Select different options as per your wish (I chose 75%)

Performance of canvas in xcode simulator with retina display

I have an html5 canvas game, limited to 30FPS. This runs fine (#30FPS) on the iPad2 and the xcode simulator when set to iPad2.
However, when I set the simulator to "Retina" and run the app the FPS drop to 11FPS. I get roughly the same result when I do the following:
Let the simulator scale up my iPad2 images.
When I use CSS transorms to scale up my images.
when I JS to scale up my images (using pixelratio).
Interestingly, this 11FPS is also seen when I test it in the iPhone retina simulator (even though this app isn't built for the iPhone so it simply gets cut-off).
Are there any known issues with canvas and the xcode simulator? Are there any fixes or am I doing something wrong?
My hardware is Macbook Pro (mid 2012) with i7CPU and 8GB ram.
Thanks
J.
It's a simulator not an emulator, never expect accurate results from it, especially when it comes to hardware performance related issues. Test your app on a real device, if you get the desired frame rate on a real device, that is all that matters.
Now, why your simulator is doing this is somewhat interesting. My best guess is that the computer is having a hard time running your game at a higher resolution than your screen in a scaled down window... Once again, just my best guess.

Can the Flash Builder 4.5 iPad simulator be scaled?

I'm working on an Adobe Flash Builder 4.5 iPad application. I have only a humble 13" MacBook to work with.
I am being aggravated by the problem of debugging my application in the Flashbuilder's iPad simulator. The FB simulator screen is almost the same physical size as a real iPad, which is too big to fit on a 13" MacBook.
QUESTION: Is there some setting in Flash Builder 4.5 that would scale the iPad simulator to fit the available screen real estate?
Increase the resolution of your Macbook or use the physical device to do development. I don't think it's possible to 'scale' the emulator, nor would you want to.
While I don't know of a way for you to actually scale it, you can get around some of the problems by just rotating it (Command-R)

Resources