ios 11 版本升级有关

相关引用


scrollview新特性
_scroolView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;

 if (@available(iOS 11.0, *)) {
            _scroolView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
        } else {
            // Fallback on earlier versions
        }
获取状态栏的高度
#define StatusBarHeight CGRectGetHeight([[UIApplication sharedApplication] statusBarFrame])

猜你喜欢

转载自blog.csdn.net/github_33467146/article/details/81163244