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");
    }
}
上一篇:Java异常机制


下一篇:vue安装过程