相关引用
scrollview新特性
_scroolView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
if (@available(iOS 11.0, *)) {
_scroolView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
// Fallback on earlier versions
}
获取状态栏的高度
#define StatusBarHeight CGRectGetHeight([[UIApplication sharedApplication] statusBarFrame])
本文介绍了如何为APP适配iOS11的新特性,包括针对iPhoneX的设计调整、代码实现方式以及scrollview的新特性使用方法。同时提供了获取状态栏高度的代码示例。
1621

被折叠的 条评论
为什么被折叠?



