ZFTableSectionModel.h 783 B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // ZFTableSectionModel.h
  3. // ZFPlayer_Example
  4. //
  5. // Created by 紫枫 on 2019/6/4.
  6. // Copyright © 2019 紫枫. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. @interface ZFTableItem : NSObject
  11. @property (nonatomic, copy) NSString *title;
  12. @property (nonatomic, copy) NSString *subTitle;
  13. @property (nonatomic, copy) NSString *viewControllerName;
  14. + (instancetype)itemWithTitle:(NSString *)title subTitle:(NSString *)subTitle viewControllerName:(NSString *)name;
  15. @end
  16. @interface ZFTableSectionModel : NSObject
  17. @property (nonatomic, copy) NSString *title;
  18. @property (nonatomic, copy) NSArray <ZFTableItem *>*items;
  19. + (instancetype)sectionModeWithTitle:(NSString *)title items:(NSArray <ZFTableItem *>*)items;
  20. @end
  21. NS_ASSUME_NONNULL_END