美文网首页
UICollectionview设置contentInset方式

UICollectionview设置contentInset方式

作者: HF_K | 来源:发表于2020-08-12 10:28 被阅读0次

下拉(解决设置contentInset 遮挡mj_header显示关键代码)

MJRefreshNormalHeader *header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{
    [self requestForData];
}];
header.ignoredScrollViewContentInsetTop = 30.f;
self.collectionView.mj_header = header;

相关文章

网友评论

      本文标题:UICollectionview设置contentInset方式

      本文链接:https://www.haomeiwen.com/subject/hzdpdktx.html