程序员

ios 11 push操作 tableview 上移

2017-11-08  本文已影响72人  小锤子_

在iOS11 中automaticallyAdjustsScrollViewInsets属性被废弃

可以做一下系统的判断

 if (@available(iOS 11.0, *)) {
        
        table.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
    }else {
        self.automaticallyAdjustsScrollViewInsets = NO;
    }

希望对你有所帮助

上一篇 下一篇

猜你喜欢

热点阅读