if (iOS7) {
self.edgesForExtendedLayout = UIRectEdgeNone;
self.extendedLayoutIncludesOpaqueBars = NO;
self.automaticallyAdjustsScrollViewInsets = YES;
self.modalPresentationCapturesStatusBarAppearance = NO;
}
self.navigationController.navigationBar.translucent = NO; 设置了代码也不可以,好虐心,求助,能详解的更好。类似图片显示的这样:
self.edgesForExtendedLayout = UIRectEdgeNone;
self.extendedLayoutIncludesOpaqueBars = NO;
self.automaticallyAdjustsScrollViewInsets = YES;
self.modalPresentationCapturesStatusBarAppearance = NO;
}
self.navigationController.navigationBar.translucent = NO; 设置了代码也不可以,好虐心,求助,能详解的更好。类似图片显示的这样:
#define IsIOS7 ([[[[UIDevice currentDevice] systemVersion] substringToIndex:1] intValue]>=7)
#define CGRECT_NO_NAV(x,y,w,h) CGRectMake((x), (y+(IsIOS7?20:0)), (w), (h))
#define CGRECT_HAVE_NAV(x,y,w,h) CGRectMake((x), (y+(IsIOS7?64:0)), (w), (h))