单军华
2018-07-11 7b02207537d35bfa1714bf8beafc921f717d100a
screendisplay/screendisplay/Classes/Base/BaseModels/LMJItemSection.m
New file
@@ -0,0 +1,36 @@
//
//  LMJItemSection.m
//  GoMeYWLC
//
//  Created by NJHu on 2016/10/21.
//  Copyright © 2016年 NJHu. All rights reserved.
//
#import "LMJItemSection.h"
@implementation LMJItemSection
+ (instancetype)sectionWithItems:(NSArray<LMJWordItem *> *)items andHeaderTitle:(NSString *)headerTitle footerTitle:(NSString *)footerTitle
{
    LMJItemSection *item = [[self alloc] init];
    if (items.count) {
        [item.items addObjectsFromArray:items];
    }
    item.headerTitle = headerTitle;
    item.footerTitle = footerTitle;
    return item;
}
- (NSMutableArray<LMJWordItem *> *)items
{
    if(!_items)
    {
        _items = [NSMutableArray array];
    }
    return _items;
}
@end