DetailTopicCell.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. //
  2. // DetailTopicCellTableViewCell.h
  3. // iShop
  4. //
  5. // Created by Rui Zhang on 2/26/24.
  6. //
  7. #import <UIKit/UIKit.h>
  8. @class DetailTopicCell;
  9. @protocol DetailRelatedCellDelegate <NSObject>
  10. @required
  11. - (void) TopicItemClicked:(NSString*) product_id category:(NSString*) category;
  12. //- (void) LongPress:(UIView*)view row:(int) x column:(int) y;
  13. //- (void) LongPress:(UIView*)view row:(int) x;
  14. //- (void) Tap:(UIView*)view row:(int) x column:(int) y;
  15. //- (void) Tap:(UIView*)view row:(int) x;
  16. @end
  17. @interface DetailTopicCell : UITableViewCell<UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>
  18. {
  19. @private
  20. // id <MDSpreadViewDataSource>__unsafe_unretained _dataSource;
  21. id <DetailRelatedCellDelegate> __weak itemdelegate;
  22. }
  23. @property (strong, nonatomic) IBOutlet UICollectionView *topicCollectionView;
  24. @property (weak, nonatomic) id <DetailRelatedCellDelegate> itemdelegate;
  25. @property (strong, nonatomic) NSDictionary* related_data;
  26. -(void) begin_refresh;
  27. -(void) end_refresh;
  28. @property (strong, nonatomic) IBOutlet UILabel *refreshLabel;
  29. @end