My iphone application supports both portrait and landscape orientation. To do this in new iphone 5 iOS 6 introduces a new property called auto layout constraint. But I need to support my application both iOS 5 and iOS 6. So I cannot use this constraints. Is there any way to do this portrait and landscape orientation without using auto layout ?
My iphone application supports both portrait and landscape orientation. To do this in new
Share
YES you can do this very easily.
For iOS6
UIViewControllers, in which you need only PORTRAIT mode, write these functions
For UIViewControllers, which require LANDSCAPE too, change masking to All.
Now, if you want to do some changes when Orientation changes, then use this function.
For iOS5