ipad屏幕旋转后的代理

- (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");
    }
}
原文地址:https://www.cnblogs.com/lisjie/p/5135071.html