Collectionview设置contentInset方式添加表头Header,影响MJRefresh下拉刷新
解决方案:
//下拉(解决设置contentInset 遮挡mj_header显示关键代码)
MJRefreshNormalHeader *ref_header =[MJRefreshNormalHeaderheaderWithRefreshingTarget:selfrefreshingAction:@selector(makeTheTabDown:)];
ref_header.ignoredScrollViewContentInsetTop = 150.f;
self.myCollectionView.mj_header = ref_header;
君凯商联网-iOS-字唐名僧