Nessuna descrizione

FKMyBookDataSource.h 817B

1234567891011121314151617181920212223242526272829303132
  1. //
  2. // FKMyBookDataSource.h
  3. // FirstLink
  4. //
  5. // Created by jack on 16/4/29.
  6. // Copyright © 2016年 FirstLink. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. typedef NS_ENUM(NSUInteger, BookContentType) {
  10. BookContentTypeNormal = 0,
  11. BookContentTypeRecommend,
  12. };
  13. @protocol FKMyBookDataSource <NSObject>
  14. @required
  15. @property (nonatomic, strong) NSArray *itemArray;
  16. @property (nonatomic, assign, readonly) BookContentType contentType;
  17. @property (nonatomic, assign, readonly) BOOL enableBottomRefresh;
  18. - (NSInteger)numberOfRowsInSection:(NSInteger)section;
  19. - (NSString *)cellIdentify;
  20. - (CGFloat)heightForRowAtIndexPath:(NSIndexPath *)indexPath;
  21. - (CGFloat)heightForHeaderInSection:(NSInteger)section;
  22. - (void)appendMoreItem:(NSArray *)moreArray;
  23. - (id)proModelAtIndex:(NSUInteger)index;
  24. @end