美文网首页
iOS11适配笔记

iOS11适配笔记

作者: huangxiongbiao | 来源:发表于2017-12-01 15:45 被阅读19次

安全区域适配总结 http://www.jianshu.com/p/efbc8619d56b

//解决iOS11,仅实现heightForHeaderInSection,没有实现viewForHeaderInSection方法时,section间距大的问题

[UITableView appearance].estimatedRowHeight = 0;
[UITableView appearance].estimatedSectionHeaderHeight = 0;
[UITableView appearance].estimatedSectionFooterHeight = 0;

下面这个有bug


EA8E8D2F-6C16-4745-8980-F23C0C1244E0.png

//iOS11 解决SafeArea的问题,同时能解决pop时上级页面scrollView抖动的问题

if (@available(iOS 11, *)) {
[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; //iOS11 解决SafeArea的问题,同时能解决pop时上级页面scrollView抖动的问题
}

相关文章

网友评论

      本文标题:iOS11适配笔记

      本文链接:https://www.haomeiwen.com/subject/mbdwbxtx.html