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.