适配iOS11 - UITableview UICollecti

2017-10-16  本文已影响0人  一昂杨杨

if (@available(iOS 11.0, *)) {

_tableView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;

_tableView.contentInset = UIEdgeInsetsMake(64, 0, 49, 0);

_tableView.scrollIndicatorInsets = _tableView.contentInset;

}

上一篇 下一篇

猜你喜欢

热点阅读