HDCollectionView
HDCollectionView copied to clipboard
An efficient and flexible listView (data driven). Based on Flexbox, it supports floating, waterfall, decorative view, horizontal sliding, segmented layout, and various alignments. Support diff refresh...
PMFieldModel *model1 = [PMFieldModel new]; model1.fieldName = self.source == 1 ? @"添加收款计划" : @"添加付款计划"; HDCellModel *cellModel1 = HDMakeCellModelChain .hd_orgData(model1) .hd_cellSize(CGSizeMake(kScreenWidth, 48)) .hd_cellClassStr(@"PMAddDefaultTableViewCell") .hd_reuseIdentifier(@"addPlan") .hd_generateObj; [cellModelArr addObject:cellModel1]; 代码如下,我想实现添加滑动手势增加删除按钮
就是说,在横向滑动时禁止上下滑动;在上下滑动时禁止左右滑动。 现在效果如下: 
Cell 里播放视频需要用到scrollViewDidScrollToTop: 建议新增滑动事件回调方法。 
hd_appendDataWithSecModelArr
[ws.collectionView hd_changeSectionModelWithKey:@"header1" animated:YES changingIn:^(id _Nonnull secModel) { secModel.headerObj = @"新值"; }]; - (void)updateSecVUI:(__kindof id)model { /// 此方法不会被调用, 我是在这里修改数据的 } 请问是我使用方式错了还是不能这样更新SectionHeader的数据呢?
var cellData:Any?{ didSet{ guard let cellData = cellData as? ZZZ_HomeNoisePresetList else { return } titlab.text = cellData.preset_cate_name //该段layout let layout = HDWaterFlowLayout() layout.secInset = UIEdgeInsets(top: 0, left: 20, bottom: 0,...
怎样加载.bundle文件中的xxxCell.nib
### 背景 我看目前demo中提供的刷新示例和库里提供的数据更新方法,数据更新是以section为单位,每次需要更新时调用 ```objectivec - (void)hd_changeSectionModelWithKey:(nullable NSString*)sectionKey animated:(BOOL)animated changingIn:(void(^)(id secModel))changeBlock animationFinishCallback:(void(^ _Nullable)(void))animationFinish; ``` 如果我点击section1,然后刷新section1下的cell数据呢?只能重新创建section1下所有`HDCellModel`吗?好像没有直接刷新cell数据的方法,demo中提供了一个示例,但是不满足,是一个点击cell本身,更新当前cell数据的方法 ```objectivec - (void)clickCell:(HDCellModel*)cellM { NSLog(@"点击了%zd--%zd cell",cellM.indexP.section,cellM.indexP.item); //刷新当前cell的UI [listV hd_changeSectionModelWithKey:cellM.secModel.sectionKey animated:YES changingIn:^(HDSectionModel *secModel) { cellM.orgData = @(arc4random()%1000).stringValue;...