is it possible to test Retina Display on simulator? - iphone

How can you test Retina Display on a simulator if it is possible?

Yes, run the application from Xcode, when the simulator opens go to Hardware->Device->iPhone 4
That will now have a 2x screen resolution.

Related

When I run iPhone app on iPad the screen resolution is wrong. How to fix this?

I encountered with a strange problem. I develop an application which is targeting iPhone device family with Retina 3.5 and 4. All the time I used iPhone 5 simulator to test all the UI and functionality and everything was good but know I have to test push notifications. I have iPad 4 (model MD522ZP/A) as an iOS 6 device. When I run my app on it all the UI layout became wrong. The most weird problem is when I tried to check display resolution with this code:
NSLog(#"RESOLUTION = %#", NSStringFromCGSize([UIScreen mainScreen].bounds.size));
I got this : RESOLUTION = {320, 480}. But it is iPhone 3 resolution! Why iPad didn't use Retina 3.5/4 resolution ? And how can I fix it? I don't want to create separate xibs only for iPad testing but I want to test my app on it so that all the UI elements will fit on screen.
Hope for the help.
It's not wrong. It is doing exactly the right thing. All references to sizes are in points, not pixels. When you get the bounds, it will be 320x480 on all 3.5" screens whether they are retina or not. Try it on any 3.5" retina device. You will get the same log output.
The iPad does not emulate a 4" device when running an iPhone-only app. It will always be a 3.5" iPhone compatible mode.
So seeing 320x480 is the correct size to expect.
Think of it this way. A retina iPad will show an iPhone-only app like it is running on a 3.5" retina iPhone. A non-retina iPad will show an iPhone-only app like it is running on a 3.5" non-retina iPhone.

iPhone 6.0 simulator not showing home button or frames

When I run the iOS Simulator (iPhone running iOS 6.0), it does not show the home button or frames.
I have installed Mac OS X and Xcode on a VMware instance.
Increase the scale of iPhone simulator to 100% Or
other option is Use Command window+shift+h
this will work like you press home button
There isn't any Home button or Frame for iPhone 5 (iOS 6).
To go to the Home Screen do these Steps:
Simulator
Hardware
Home
The only Possible way to get the frame is taking the iPhone simulator screenshot and then Cropping it in a iPhone 5 frame in Photoshop.
Once the simulator is open press Command+1
Try clicking command+2 button to enlarge try for command+1, command+3. see the different sizes. Check if the simulator app is selected.

Why my Xcode4.5 doesnt have a iphoneretinasimulator with 4 inch?

I have downloaded xcode 4.5 from ios dev center.(dnt know is it the way).I got a dmg file.when i clicked on it to install it has only one xcode setup is there(nothing like samples,simulator folders which normally has).i inatalled it run my application .but when i got the simulator it has hardware options as ipad,ipad retina,iphone,iphone retina3.5,iphone retina 4 inch.only.the normal iphone simulator has the same screen reselution as 320,480.so the retina display has only the changed reselution screen.Is it correct.Can any body used this can guide me?
If you mean that there is no low resolution Simulator, thats right. If you want a smaller Simulator, you can type CMD-3.

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

in ipad simulator how to set screen size to 1x 2x format

For my App I have set the target device family=iPhone/iPad
and in project-> Set Active executable to iPad simulator and it was opening my App in iPad simulator in 1x/2x format so i could change the size by using option 1x 2x.
now i have upgrated my IOS SDK to 4.2 from 4.1
the probleam is: now my App opens in the iPad simulator with full screen size(instead of 1x 2x format) and all controls' position on the screen has been changed and it spoiled whole look of app.
now I want to open my app in iPad simulator again in the same 1x 2x scrren sizes format.
so now How I can do that?
please help and suggest
thanks
The 1x/2x option is only a compatibility option for iPhone-only apps. If you set the targeted device family to iPhone/iPad, then it is a universal app and will always display at full resolution on the iPad.