UIDEVICE orientation
Posted
by hardik
on Stack Overflow
See other posts from Stack Overflow
or by hardik
Published on 2010-06-02T04:51:49Z
Indexed on
2010/06/02
4:53 UTC
Read the original article
Hit count: 412
iphone
hello all i have my splash screen which i want to show in landscape mode and all other screen in potrait mode. My root view controller is acting as a splash screen i am writing this code in viewdidload method
[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];
But this code is not working and shows me that UIdevice may not respond to setorentation please guide me that how could i change the orentation for only first splash screen and also other screen should be in potrait mode
© Stack Overflow or respective owner