当修改collectionView.contentInset 时候,会存在mj_header 隐藏显示的问题
网上很多 collectionView.mj_header.ignoredScrollViewContentInsetTop = edge.top
实际上是没有用的
正确解决方法
collectionView.mj_header.mj_y = (-edge.top - collectionView.mj_header.mj_h)
edge 为你重新修改的collectionView.contentInset
网友评论