Reputation: 2020
How can I enable rotation of the Interface without override UIViewController method:
-(BOOL)shouldAuorotateToInterfaceOrientation
I don't have UIViewController class in my app, just only UIView.
Upvotes: 0
Views: 306
Reputation: 3094
If you don't have a controller you'll have to create one first for this to work. At the settings *.plist file you have two options called "Supported interface orientations" and "Supported interface orientations (iPad)". Enable the ones you want to support.
Then at the UIViewControllers you want to support orientations, you'll have to override -(BOOL)shouldAuorotateToInterfaceOrientation
to return YES
at the orientations you want to support and write all the necessary drawing code to position everything in their proper places.
Upvotes: 1