首页 > 其他 > 详细

ipad屏幕旋转后的代理

时间:2016-01-16 11:55:56      阅读:153      评论:0      收藏:0      [点我收藏+]
- (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");
    }
}

ipad屏幕旋转后的代理

原文:http://www.cnblogs.com/lisjie/p/5135071.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!