HMHotTableViewCell.h 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. //
  2. // HMHotTableViewCell.h
  3. // BuguLive
  4. //
  5. // Created by xfg on 2017/7/5.
  6. // Copyright © 2017年 xfg. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "HMHotItemModel.h"
  10. #import "EdgeInsetsLabel.h"
  11. @protocol HMHotTableViewCellDelegate <NSObject>
  12. @required
  13. /**
  14. 点击跳转到话题
  15. @param rowIndex 当前行的下标
  16. */
  17. - (void)pushToTopic:(NSInteger)rowIndex;
  18. /**
  19. 点击用户头像
  20. @param rowIndex 当前行的下标
  21. */
  22. - (void)clickUserIcon:(NSInteger)rowIndex;
  23. @end
  24. @interface HMHotTableViewCell : UITableViewCell
  25. {
  26. NSInteger _rowIndex;
  27. }
  28. @property (nonatomic, weak) id<HMHotTableViewCellDelegate> delegate;
  29. @property (weak, nonatomic) IBOutlet MenuButton *headImgBtn;
  30. @property (weak, nonatomic) IBOutlet UIImageView *autImgView;
  31. @property (weak, nonatomic) IBOutlet UILabel *userNameLabel;
  32. @property (weak, nonatomic) IBOutlet EdgeInsetsLabel *areaLabel;
  33. @property (weak, nonatomic) IBOutlet UILabel *watchNumLabel;
  34. @property (weak, nonatomic) IBOutlet UIImageView *liveImgView;
  35. @property (weak, nonatomic) IBOutlet EdgeInsetsLabel *liveStateLabel;
  36. @property (weak, nonatomic) IBOutlet EdgeInsetsLabel *livePriceLabel;
  37. @property (weak, nonatomic) IBOutlet EdgeInsetsLabel *gameStateLabel;
  38. @property (weak, nonatomic) IBOutlet UILabel *liveDecLabel;
  39. @property (weak, nonatomic) IBOutlet UILabel *lineLabel;
  40. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *noDecLayout;
  41. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *gameStateSpaceTopLayout;
  42. @property (strong, nonatomic) GlobalVariables *BuguLive;
  43. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *liveStateLabelSpaceTop;
  44. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *liveStateLabelHeight;
  45. - (void)initWidthModel:(HMHotItemModel *)hotItemModel rowIndex:(NSInteger)rowIndex;
  46. @end