Guide me on UIDevice currentDevice
Posted
by
barbgal
on Stack Overflow
See other posts from Stack Overflow
or by barbgal
Published on 2011-01-04T05:17:01Z
Indexed on
2011/01/04
5:53 UTC
Read the original article
Hit count: 214
iphone
|iphone-sdk-3.0
I am using the following code to set the device orientaion
[[UIDevice currentDevice] setOrientation:UIInterfaceOrientationLandscapeRight];
when i used i got the warning and i found the below code to fix that warning.
@interface UIDevice (MyPrivateNameThatAppleWouldNeverUseGoesHere)
- (void) setOrientation:(UIInterfaceOrientation)orientation;
@end
Now what i would like to know is ...
Can the app store accepts this code to be in an application?
Thanks for any help!.
© Stack Overflow or respective owner