DetailTopicCell.h 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. //
  2. // DetailRelatedCell.h
  3. // RedAnt ERP Mobile
  4. //
  5. // Created by Ray on 14-7-31.
  6. // Copyright (c) 2014年 United Software Applications, Inc. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class DetailTopicCell;
  10. @protocol DetailRelatedCellDelegate <NSObject>
  11. @required
  12. - (void) TopicItemClicked:(NSString*) product_id category:(NSString*) category;
  13. //- (void) LongPress:(UIView*)view row:(int) x column:(int) y;
  14. //- (void) LongPress:(UIView*)view row:(int) x;
  15. //- (void) Tap:(UIView*)view row:(int) x column:(int) y;
  16. //- (void) Tap:(UIView*)view row:(int) x;
  17. @end
  18. @interface DetailTopicCell : UITableViewCell<UICollectionViewDataSource,UICollectionViewDelegate,UICollectionViewDelegateFlowLayout>
  19. {
  20. @private
  21. // id <MDSpreadViewDataSource>__unsafe_unretained _dataSource;
  22. id <DetailRelatedCellDelegate> __weak itemdelegate;
  23. }
  24. @property (strong, nonatomic) IBOutlet UICollectionView *topicCollectionView;
  25. @property (weak, nonatomic) id <DetailRelatedCellDelegate> itemdelegate;
  26. @property (strong, nonatomic) NSDictionary* related_data;
  27. @end
  28. /*
  29. @class SimpleGrid;
  30. @protocol SimpleGridDelegate <NSObject>
  31. @required
  32. - (void) LongPress:(UIView*)view row:(int) x column:(int) y;
  33. - (void) LongPress:(UIView*)view row:(int) x;
  34. - (void) Tap:(UIView*)view row:(int) x column:(int) y;
  35. - (void) Tap:(UIView*)view row:(int) x;
  36. @end
  37. @interface SimpleGrid : UIScrollView
  38. {
  39. @private
  40. // id <MDSpreadViewDataSource>__unsafe_unretained _dataSource;
  41. id <SimpleGridDelegate> __weak griddelegate;
  42. }
  43. //
  44. @property (weak, nonatomic) id <SimpleGridDelegate> griddelegate;
  45. */