MJRefresh 是配iPhone异形曲面屏
找到
UIScrollView+MJExtension
然后在找到
- (void)setMj_insetT:(CGFloat)mj_insetT
然后将这方法改成下面样子即可
- (void)setMj_insetT:(CGFloat)mj_insetT
{
UIEdgeInsets inset = self.contentInset;
inset.top = mj_insetT;
#ifdef __IPHONE_11_0
if(@available(iOS 11.0, *)){
inset.top -= (self.adjustedContentInset.top - self.contentInset.top);
}
#endif
self.contentInset = inset;
}
这样就完成了适配