How to update my UIViewController to current orientation when use pushViewController?
Posted
by RAGOpoR
on Stack Overflow
See other posts from Stack Overflow
or by RAGOpoR
Published on 2010-06-14T03:12:46Z
Indexed on
2010/06/14
3:22 UTC
Read the original article
Hit count: 491
iphone
|uiviewcontroller
i have use this code but it is Private API ,apple also reject!
[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];
if i rotate my device in Landscape then open my Application it will present as Portrait mode, i need to rotate my device to another orientation then it will update.
how to update it to correct orientation when call UIViewController?
© Stack Overflow or respective owner