UINavigationController导航条是否挡住下面的内容

控制 UINavigationController 导航条是否挡住下面的内容   

if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
        self.edgesForExtendedLayout = UIRectEdgeNone;
        self.extendedLayoutIncludesOpaqueBars = NO;
        self.modalPresentationCapturesStatusBarAppearance = NO;
    }

 

或者设置半透明

self.navigationController.navigationBar.translucent = YES;

posted @ 2015-09-07 14:39  frounk  阅读(286)  评论(0)    收藏  举报