GuybrushThreepwood
GuybrushThreepwood

Reputation: 5616

Manually Changing Orientation of UIViewController ? iPhone

Is it possible to manually set a view controller's orientation (in this case back to its initial position) ?

Thank you.

Upvotes: 0

Views: 903

Answers (1)

iNeal
iNeal

Reputation: 1729

UIApplication *application = [UIApplication sharedApplication];
[application setStatusBarOrientation:UIInterfaceOrientationPortrait
                            animated:YES];

Upvotes: 1

Related Questions