iOS11中scrollview增加了一个contentInsetAdjustmentBehavior 属性,判断一下是iOS11,然后设置为never就行了
#ifdef __IPHONE_11_0
if (@available(iOS 11.0, *)) {
self.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
}
#endif
iOS11中scrollview增加了一个contentInsetAdjustmentBehavior 属性,判断一下是iOS11,然后设置为never就行了
#ifdef __IPHONE_11_0
if (@available(iOS 11.0, *)) {
self.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;
} else {
}
#endif
本文标题:iOS11中页面返回tableview下移问题
本文链接:https://www.haomeiwen.com/subject/fiusuxtx.html
网友评论