SwipeTableView
SwipeTableView copied to clipboard
Both scroll horizontal and vertical for segment scrollview which have a same header. — 类似半糖、美丽说主页与QQ音乐歌曲列表布局效果,实现不同菜单的左右滑动切换,同时支持类似tableview的顶部工具栏悬停...
在维护App的时候,发现了前人集成了这个东西,代码耦合度高的吓人,还很容易触发异步刷新的crash问题,虽然我做了很多修改,源码也做了修改。controller 代码就有5000行,我是心力交瘁啊
这个东西会导致代码耦合度变的很高,维护成本也会非常高
左滑正常,右滑crash - `-[UICollectionView _updateVisibleCellsNow:]`无限调用进入死循环了 设备信息:iPhoneXS 版本号:12.1(16B92) && 12.0(16A366) 非iPhoneXs 的 12.0(16A366) 正常 #
- (void)setSt_bottom:(CGFloat)b { self.frame = CGRectMake(self.st_left, b - self.st_height, self.st_width, self.st_height); } 崩到这儿了
获取swipeView.currentItemIndex 超过了 UICollectionView * contentView 的numberOfItemsInSection
如果进入使用SwipeTableView的控制器页面,想让指定某一个item页面展示怎么处理?而不是进去页面就默认显示item0。
反复滑来滑去有纪律触发crash,问题出在UIView+STFrame的 - (void)setSt_bottom:(CGFloat)b { self.frame = CGRectMake(self.st_left, b - self.st_height, self.st_width, self.st_height); } warning: could not load any Objective-C class information. This will significantly reduce the quality of type information...
使用reloadData 刷新视图 代理方法都不走,视图没刷新 需要用reloadSections 才可以
MJRefresh ---------CustomTableView 高度很大 例如200以上的时候,第一条数据会出现遮挡,请帮忙修复一下 集成MJRefresh的时候,或者是不是需要设置什么
- (void)viewHeightDidChange:(CGFloat)height { _tableViewHeader.frame = CGRectMake(0, 0, kScreenWidth, height); _swipeTableView.swipeHeaderView = _tableViewHeader; [_swipeTableView reloadData]; } 难道是我更新headerView高度的方法用错了?? 怎么更新高度呢?
STHeaderView 子类中添加横向scrollview手势冲突