iOS11 开发过程中遇到的问题集合

//解决iOS11,仅实现heightForHeaderInSection,没有实现viewForHeaderInSection方法时,section间距大的问题
[UITableView appearance].estimatedRowHeight = 0;
[UITableView appearance].estimatedSectionHeaderHeight = 0;
[UITableView appearance].estimatedSectionFooterHeight = 0;

//解决SafeArea的问题,同时能解决pop时上级页面scrollView抖动的问题
if (@available(iOS 11, *)) {

[UIScrollView appearance].contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever; 

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

}

猜你喜欢

转载自blog.csdn.net/niumanxx/article/details/78909715