4

Possible Duplicate:
How to develop or migrate apps for iPhone 5 screen resolution?

I have some applications in IPhone.Now i want them to be compatible to IPhone5.Somewhere i read that i need to change the splash screen to 4 inch.Shall i need to change this in all my xibs,or splash only.Currently i am using xcode4.2.i am getting IPhone5 simulator,is that enough or i need to install any later version to get the correct simulator.Where from i will get the latest simulator of IPhone5. Can anybody help me with the exact steps for acheving this transition?

Community
  • 1
  • 1
hacker
  • 8,919
  • 12
  • 62
  • 108

3 Answers3

4

You definitely need to install XCode 4.5, and to create a new splash image for the 4-inch screen, called Default-568h@2x.png.

You shouldn't change the size of your xibs, because you'll want your app to work on both old and new phones. However, you may want to change the autoresizing masks of some of the views in your xibs so that they stretch to fill the larger screen.

Simon
  • 25,468
  • 44
  • 152
  • 266
1

here are the points *if you want to make use of full height of the iPhone5 create splash screen that's exactly 640x1136 pixels in size and name default-568h@2x.png *if you have problem with rotation check a)window.rootViewController = firstViewcontroller (dont add view to your window) b)implement the new rorate delegate function

*Use viewDidLayoutSubviews rather than viewDidLoad to set up widget sizes relative to the window *You can manually check the screen size and load the right image like this:

    UIImage* myImage;
CGFloat screenHeight = [UIScreen mainScreen].bounds.size.height;
if ([UIScreen mainScreen].scale == 2.f && screenHeight == 568.0f) {
   myImage = [UIImage imageNamed:@"myImage-568h@2x.png"];
} else {
} 

myImage = [UIImage imageNamed:@"myImage.png"];

or use catogary from the following GIT gist https://gist.github.com/3719620

Hashim MH
  • 1,576
  • 1
  • 15
  • 29
0

if you want to test your app with IOS 6 simulator with 4 inch display you need to install Xcode 4.5 from developer center.

UPDATED: You can refer to discussion Will Xcode 4.3.2 suffice to build apps for iOS 6?

Community
  • 1
  • 1
Ilker Baltaci
  • 11,644
  • 6
  • 63
  • 79