From 7b02207537d35bfa1714bf8beafc921f717d100a Mon Sep 17 00:00:00 2001 From: 单军华 Date: Wed, 11 Jul 2018 10:47:42 +0800 Subject: [PATCH] 首次上传 --- screendisplay/screendisplay/Classes/Base/BaseModels/LMJItemSection.m | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/screendisplay/screendisplay/Classes/Base/BaseModels/LMJItemSection.m b/screendisplay/screendisplay/Classes/Base/BaseModels/LMJItemSection.m new file mode 100755 index 0000000..f01b189 --- /dev/null +++ b/screendisplay/screendisplay/Classes/Base/BaseModels/LMJItemSection.m @@ -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 -- Gitblit v1.8.0