1

I'm developing an iPhone and iPad app with latest SDK and Xcode 4.5.2.

My client said me that the app has to support iOS 4.3 and above.

So, if I target iOS 4.3 I can't use:

  • Storyboards.
  • Auto-layouts.

I have to create XIB for every ViewController, but:

What must I do to support Retina 4-inch screen?

and

What must I do something to support iOS 5?

VansFannel
  • 45,055
  • 107
  • 359
  • 626

4 Answers4

1

Simply design your app for 3.5" screens, and make judicous use of autoresizing masks.

Cyrille
  • 25,014
  • 12
  • 67
  • 90
0

For supporting Retina 4-inch screen, here is good answer to that

and YES Storyboards and Auto-layouts are not for iOS 4.3

More on iOS 5, you don't need to do and special coding for that

and YES you can support Retina 4 inch with deployment target set to iOS 4.3

Hope this info helps you..

Community
  • 1
  • 1
P.J
  • 6,547
  • 9
  • 44
  • 74
  • Thanks for your answer but I want to know how can I support Retina 4 inch display, Retina 3.5 inch display and 3.5 inch display. Will I need to add two xibs, one for Retina 4 inch and the other one for the others display? – VansFannel Jan 18 '13 at 12:27
  • @VansFannel I would do this in code and not actually on the xibs. So I would have something like `if(IS_IPHONE5()) { // do one layout } else if(IS_IPAD) { // do this layout } else {// do the final layout}` – Popeye Jan 18 '13 at 12:29
  • No, you dont need to create separate xib for Retina 4 inch. You can do this in code. Visit the link above which I have made hyperlink. Here you will find all solution to handle code for Retina 4 inch display.. – P.J Jan 18 '13 at 12:32
  • @Prateek I'm testing it now. – VansFannel Jan 18 '13 at 15:20
0

Have a look at these two links

Screen size of iphone 5

Naming convention for iPhone 5 images?

I don't see why these wouldn't work.

Move from comments

@VansFannel I would do this in code and not actually on the xibs. So I would have something like

   if(IS_IPHONE5()) { 
      // do one layout 
   } else if(IS_IPAD) { 
      // do this layout 
   } else {
      // do the final layout
   }
Community
  • 1
  • 1
Popeye
  • 11,839
  • 9
  • 58
  • 91
0

In info.plist file remove the option of Launch screen interface file base name and you wont get the issue

venki
  • 179
  • 2
  • 10