PPImageScrollingTableViewCell.h 1.1 KB

123456789101112131415161718192021222324252627282930
  1. //
  2. // PPScrollingTableViewCell.h
  3. // PPImageScrollingTableViewControllerDemo
  4. //
  5. // Created by popochess on 13/8/10.
  6. // Copyright (c) 2013年 popochess. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. @class PPImageScrollingTableViewCell;
  10. @protocol PPImageScrollingTableViewCellDelegate <NSObject>
  11. // Notifies the delegate when user click image
  12. - (void)scrollingTableViewCell:(PPImageScrollingTableViewCell *)scrollingTableViewCell didSelectImageAtIndexPath:(NSIndexPath*)indexPathOfImage atCategoryRowIndex:(NSInteger)categoryRowIndex;
  13. @end
  14. @interface PPImageScrollingTableViewCell : UITableViewCell
  15. @property (weak, nonatomic) id<PPImageScrollingTableViewCellDelegate> delegate;
  16. @property (nonatomic) CGFloat height;
  17. - (void) setImageData:(NSDictionary*) image;
  18. - (void) setCollectionViewBackgroundColor:(UIColor*) color;
  19. - (void) setCategoryLabelText:(NSString*)text withColor:(UIColor*)color;
  20. - (void) setImageTitleLabelWitdh:(CGFloat)width withHeight:(CGFloat)height;
  21. - (void) setImageTitleTextColor:(UIColor*)textColor withBackgroundColor:(UIColor*)bgColor;
  22. @end