/ Published in: Objective C
Expand |
Embed | Plain Text
UIInterfaceOrientation currentOrient=[UIDevice currentDevice].orientation; if (currentOrient==UIInterfaceOrientationPortrait|| currentOrient==UIInterfaceOrientationPortraitUpsideDown) { NSLog(@"portrait"); } else if(currentOrient==UIInterfaceOrientationLandscapeLeft|| currentOrient==UIInterfaceOrientationLandscapeRight) { NSLog(@"landscape"); }
You need to login to post a comment.
