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

fangyuxi/HYCoreFramework

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

废弃

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.

About

A Core Framework For HuangYe Team

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published