This question already has an answer here:
Closed 10 years ago.
Possible Duplicate:
How to test apps for iPhone 5
In xcode 4.2 and above we can find the both device for retina display and non retina display.
that means '960-by-640-pixel resolution at 326 ppi' and '480-by-320-pixel resolution at 163 ppi' as iOS Simulator.
(in iOS Simulator menu bar, Hardware > Device > iPad/iPhone/iPhone(Retina)).
How can i choose device from Simulator for new iPhone 5 (1136-by-640-pixel resolution at 326 ppi) ..?
Both Richard and NSPostWhenIdle are correct. You need to updated to Xcode 4.5 GM, then you'll see an option for "iPhone (Retina 4-inch)", which is the iPhone 5 display.
Related
I am sure this info is somewhere but I can't find it, and the Apple Developer hotline seems to have no idea what I'm talking about. In the assets library for launch screen in Xcode, there are slots labeled:
iPhone Portrait ---> Retina HD 5.5 & Retina HD 4.7
iOS8
iPhone Portrait ---> 2x & Retina 4
iOS 7, 8
iPhone Portrait ---> 1x, 2x & Retina 4
iOS 5, 6
I had launch screens prepared and I have the sizes for these individual files, but I don't see how their sizes correspond to these Apple labels within Xcode. Moreover, the Apple docs here (https://developer.apple.com/library/ios/documentation/LanguagesUtilities/Conceptual/iTunesConnect_Guide/Appendices/Properties.html#//apple_ref/doc/uid/TP40011225-CH26-SW1 which is what Apple Developer referred me to) just refer to iphone 6 and 6s sizes, which doesn't correspond to the Xcode label organization.
This seems like it should be a 1 minute query. What am I missing and where is this super basic information?
If you select the image "slot" in the asset catalog and show the Attributes inspector (on the right-hand side), it will show (among other things) "Expected Size" for each image. Doing that, it looks like:
iPhone Portrait iOS8 Retina HD 5.5: 1242 x 2208
iPhone Portrait iOS8 Retina HD 4.7: 750 x 1334
In the Attributes inspector, you can also choose which "slots" you want included via a series of checkboxes.
Documentation-wise, see the Icon and Image Sizes section of the iOS Human Interface Guidelines.
Paraphrasing from there:
iPhone 6 Plus: Use a Launch File
iPhone 6: Use a Launch File
iPhone 5: 640 x 1136
iPhone 4s: 640 x 960
iPad (#2x): 1536 x 2048 (portrait), 2048 x 1536 (landscape)
iPad (#1x): 768 x 1024 (portrait), 1024 x 768 (landscape)
Also see the Launch Images section, which says:
Although it’s best to use a launch file for iPhone 6 and iPhone 6 Plus, you can
instead supply static launch images if necessary. If you need to create static
launch images for these devices, use the following sizes:
For iPhone 6:
750 x 1334 (#2x) for portrait
1334 x 750 (#2x) for landscape
For iPhone 6 Plus:
1242 x 2208 (#3x) for portrait
2208 x 1242 (#3x) for landscape
It's worth noting that if you're only supporting iOS 8, you can just use a launch XIB or Storyboard and you don't need to worry about particular images sizes. The Launch Images section has information on that.
My most recent app update (which is iOS 8 only) is using XIB files (one for iPhone, one for iPad) and it works great.
Retina HD 5.5 - 1242x2208
Retina HD 4.7 - 750x1334
Retina HD 5.5 landscape - 2208x1242
2x - 640x960
Retina 4 - 640x1136
1x - 320x480
default 320x568
default#x2 640x1136
Where can I find the non-retina iPhone Simulator running iOS 7.0 in Xcode 5?
There is no iOS 7 non-retina iPhone simulator as iOS 7 is only supported by retina iPhones. If you want the non-retina because of screen space you can use Window -> Scale -> 75% or 50%.
I am just starting to learn programming for the iPhone and I had a very general question.
I was wondering why is it that when I run my program in xcode, even though I am programming for iPhone 5, when I run the "iPhone 6.1 Simulator" instead of a iPhone 5 Simulator and iPhone 4 pops up?
I am on Mac OS X - 10.7.5
And Xcode version 4.6
Could it be because the apple id I used to download xcode with only has an iPhone 4 and not a 5?
Thanks for the help.
To change your simulator device to other screen resolutions go to Simulator - Device - Retina 4 inch (for iPhone 5) and Retina 3.5 inch for iPhone 4/4S. Use iPhone for iPhone 3GS resolution.
In the Window menu you can change the scale to fit your Mac's screen resolution. (I use 75% for iPhone Retina 3.5 inch).
I also suggest you download iOS 5.1 Simulator if you want to deploy apps for iOS 5.1 and up - it comes really handy and it actually does have some differences from iOS 6.
Choosing "iPhone 6.1 Simulator" is telling Xcode that you want to use the currently selected iPhone simulator with iOS 6.1.
To select the specific iPhone simulator you need to click on the Hardware then Device menu in the simulator.
Your Apple Id and your registered devices have nothing to do with this.
Why does my UIScrollView get hidden when I run my application on the 3,5 inch (iPhone 4s and older) iOS simulator?
On the iPhone 5 (4 inch) iOS simulator it's shown normally...
Thank for your answers.
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
What are the steps required to migrate existing apps to the iPhone 5 widescreen display?
How to deal with iPhone 5 screen size?
I have universal app for iPhone/iPad, but as you know, 12th of September Apple presented us new iPhone 5 with new 4 inch display. How to name and make .xib files for iPhone 5? Now there are black lines instead
I upgraded an universal app by taking the following steps:
Autorotation is changing in iOS 6. In iOS 6, the shouldAutorotateToInterfaceOrientation: method of UIViewController is deprecated. In its place, you should use the supportedInterfaceOrientationsForWindow: and shouldAutorotate methods. Thus, I added these new methods (and kept the old for iOS 5 compatibility):
-(BOOL)shouldAutorotate {
return YES;
}
-(NSUInteger)supportedInterfaceOrientations{
return UIInterfaceOrientationMaskAllButUpsideDown;
}
Then I fixed the autolayout for views that needed it. Remember to test the autorotation in iOS 5 and iOS 6 because of the changes in rotation.
Copied images from the simulator for startup view and views for the iTunes store into PhotoShop and exported them as png files. The name of the default image is: Default-568h#2x.png the size is 640 x 1136 and the screen size 320 x 568.
I have dropped backward compatibility for iOS 4. The reason is that this new Xcode does not support armv6 code any more. Thus, all devices that I am able to support now (running armv7) can be upgraded to iOS 5.