liangdrime / SwipeTableView

Both scroll horizontal and vertical for segment scrollview which have a same header. — 类似半糖、美丽说主页与QQ音乐歌曲列表布局效果,实现不同菜单的左右滑动切换,同时支持类似tableview的顶部工具栏悬停(既可以左右滑动,又可以上下滑动)。兼容下拉刷新,自定义 collectionview实现自适应 contentSize 还可实现瀑布流功能
MIT License
2.29k stars 444 forks source link

添加mj_header位置问题 #121

Open NXZXYMQ opened 6 years ago

NXZXYMQ commented 6 years ago

添加mj_refresh,在子scrollView的代理滚动方法调整了位置 - (void)scrollViewDidScroll:(UIScrollView *)scrollView { MJRefreshHeader *header = self.mj_header; CGFloat orginY = - (header.st_height + self.swipeTableView.swipeHeaderView.st_height + self.swipeTableView.swipeHeaderBar.st_height); if (header.st_y != orginY) { header.st_y = orginY; } } 可是不知道为什么mj_header的位置就是一直在segmentBar下面 求解

NXZXYMQ commented 6 years ago

在MJHeader state = 3 (刷新状态时),header又跑到下面了,这边调整没有生效