ZFTableSectionModel.m 777 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // ZFTableSectionModel.m
  3. // ZFPlayer_Example
  4. //
  5. // Created by 紫枫 on 2019/6/4.
  6. // Copyright © 2019 紫枫. All rights reserved.
  7. //
  8. #import "ZFTableSectionModel.h"
  9. @implementation ZFTableItem
  10. + (instancetype)itemWithTitle:(NSString *)title subTitle:(NSString *)subTitle viewControllerName:(NSString *)name {
  11. ZFTableItem *model = [[self alloc] init];
  12. model.title = title;
  13. model.subTitle = subTitle;
  14. model.viewControllerName = name;
  15. return model;
  16. }
  17. @end
  18. @implementation ZFTableSectionModel
  19. + (instancetype)sectionModeWithTitle:(NSString *)title items:(NSArray <ZFTableItem *>*)items {
  20. ZFTableSectionModel *sectionModel = [[self alloc] init];
  21. sectionModel.title = title;
  22. sectionModel.items = items;
  23. return sectionModel;
  24. }
  25. @end