Skip to content
This repository has been archived by the owner on Apr 1, 2019. It is now read-only.

Latest commit

 

History

History
76 lines (57 loc) · 3.2 KB

README.md

File metadata and controls

76 lines (57 loc) · 3.2 KB

废弃

CI Status Version License Platform

废弃

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

HYCoreFramework is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "HYCoreFramework"

Section Row Maker

        //列表页section
        [self updateSection:maker.section userMaker:^(WBPTTableViewSourceSectionMaker *maker) {
                                
              maker.deleteAllRows();
              //cells
              for (NSInteger index = 0; index < [infoList count]; ++index)
               {
                  NSDictionary *dic = [infoList objectAtIndex:index];
                                    
                  if ([dic isKindOfClass:[NSDictionary class]])
                  {
                    WBPTMainJobCellModel *model = [[WBPTMainJobCellModel alloc]
                                                      initWithDictionary:[infoList objectAtIndex:index]];
                    [model calculateCellElementFrame];
                    maker.addRow(model).rowPosition([WBPTBaseCell plainStyleWithIndex:index Count:[infoList count]]);
                  }
                 }
         }];
                            
                            //列表页section
                [self makeSection:^(WBPTTableViewSourceSectionMaker *maker) {
                    
                    //identifier
                    maker.setIdentifier(@"WBPTMainJobCellModel");
                    
                    //filterView as sectoinHeader
                    WBPTMainFilterSectionHeaderView *filterView = [[WBPTMainFilterSectionHeaderView alloc] initWithReuseIdentifier:nil];
                    maker.addUnReusedSectionHeaderView(filterView);
                    
                    //cells
                    for (NSInteger index = 0; index < [infoList count]; ++index)
                    {
                        NSDictionary *dic = [infoList objectAtIndex:index];
                        
                        if ([dic isKindOfClass:[NSDictionary class]])
                        {
                            WBPTMainJobCellModel *model = [[WBPTMainJobCellModel alloc]
                                                           initWithDictionary:[infoList objectAtIndex:index]];
                            [model calculateCellElementFrame];
                            maker.addRow(model).rowPosition([WBPTBaseCell plainStyleWithIndex:index Count:[infoList count]]);
                        }
                    }
                }];

Author

fangyuxi, xcoder.fang@gmail.com

License

HYCoreFramework is available under the MIT license. See the LICENSE file for more info.