- (void)statusBarOrientationChange:(NSNotification *)notification
{
UIInterfaceOrientation orientation = [[UIApplication sharedApplication] statusBarOrientation];
if (orientation == UIInterfaceOrientationLandscapeRight) // home键靠右
{
}
if (orientation ==UIInterfaceOrientationLandscapeLeft) // home键靠左
{
}
if (orientation == UIInterfaceOrientationPortrait)
{
NSLog(@"normal");
}
if (orientation == UIInterfaceOrientationPortraitUpsideDown)
{
NSLog(@"down");
}
}
时间: 2024-10-05 09:00:19