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");
    }
}
posted @ 2016-01-16 10:19  lis杰  阅读(186)  评论(0编辑  收藏  举报