2

Possible Duplicate:
Enabling auto layout in iOS 6 while remaining backwards compatible with iOS 5

I know that AutoLayout feature supported from iOS 6.0 and if I want to support iOS 5.0, I had to implement manual methods in willAnimateRotationToInterfaceOrientation to resize the controls in portrait and landscap mode. My question is can I have some settings such that when my application runs on iOS 6.0, it uses AutoLayout and when it runs on iOS 5.0, it uses custom methods? I think checking for iOS version before running custom methods should be the solution but I can't have AutoLayout and Autosize option together. Could someone please suggest their thought on this please. Thanks.

Community
  • 1
  • 1
Paresh Masani
  • 7,474
  • 12
  • 73
  • 139

1 Answers1

1

I'd have a look at the accepted answer here

Essentially, create 2 deployment targets, each using a different storyboard (one which uses Autolayout, and one which doesn't).

Community
  • 1
  • 1
graeme0811
  • 11
  • 2