-(void)viewWillAppear:(BOOL)animated
{
self.navigationController.navigationBar.hidden = YES;
self.navigationController.navigationBar.translucent = YES;
BOOL is7Version=[[[UIDevice currentDevice]systemVersion] floatValue] >= 7.0 ? YES : NO;
if (is7Version) {
self.edgesForExtendedLayout = UIRectEdgeNone;
self.navigationController.navigationBar.translucent = NO;
}
if (@available(iOS 11.0, *)) {
self.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
}
}
IOS 隐藏状态栏
最新推荐文章于 2023-06-06 21:03:10 发布