commCell.h 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. //
  2. // commCell.h
  3. // yunbaolive
  4. //
  5. // Created by Boom on 2018/12/17.
  6. // Copyright © 2018年 cat. All rights reserved.
  7. //
  8. #import <UIKit/UIKit.h>
  9. #import "commentModel.h"
  10. #import <YYWebImage/YYWebImage.h>
  11. #import "commDetailCell.h"
  12. #import <HPGrowingTextView/HPGrowingTextView.h>
  13. #import <YYText/YYLabel.h>
  14. #import <YYText/NSAttributedString+YYText.h>
  15. typedef void (^ComCellBlock)(void);
  16. @protocol commCellDelegate <NSObject>
  17. -(void)pushDetails:(NSDictionary *)commentdic andCell:(id)comcell;//跳回复列表
  18. -(void)makeLikeRloadList:(NSString *)commectid andLikes:(NSString *)likes islike:(NSString *)islike;
  19. - (void)reloadCurCell:(commentModel *)model andIndex:(NSIndexPath *)curIndex andReplist:(NSArray *)list needRefresh:(BOOL)needRefresh;
  20. - (void)playVoice:(commentModel *)model andCell:(id)comcell;
  21. - (void)playDetailesVoice:(detailmodel *)model andCell:(commDetailCell *)comcell;
  22. -(void)endEditOfGoHome;
  23. -(void)endEnterCenter;
  24. -(void)longPressing;
  25. @end
  26. NS_ASSUME_NONNULL_BEGIN
  27. @interface commCell : UITableViewCell<UITableViewDelegate,UITableViewDataSource>
  28. @property (weak, nonatomic) IBOutlet UIView *longPressView;
  29. @property (weak, nonatomic) IBOutlet UIImageView *iconImgView;
  30. @property (weak, nonatomic) IBOutlet UILabel *nameL;
  31. @property (weak, nonatomic) IBOutlet UILabel *authorL;//作者
  32. @property (weak, nonatomic) IBOutlet YYLabel *contentL;
  33. @property (weak, nonatomic) IBOutlet UIButton *zanBtn;
  34. @property (weak, nonatomic) IBOutlet UILabel *zanNumL;
  35. @property (weak, nonatomic) IBOutlet UITableView *replyTable;
  36. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *tableHeight;
  37. @property(nonatomic,strong)NSMutableArray *replyArray;
  38. @property(nonatomic,strong)UIButton *Reply_Button;//回复
  39. @property(nonatomic,strong)UIView *replyBottomView;//回复
  40. @property(nonatomic,strong)NSIndexPath *curIndex;//回复
  41. @property (nonatomic,assign) BOOL isNoMore;//判断是不是没有更多了
  42. @property(nonatomic,strong)NSString *authorID;//视频作者的id
  43. @property(nonatomic,copy)NSString *videoid;//视频id
  44. @property(nonatomic,strong)commentModel *model;
  45. @property(nonatomic,assign)id<commCellDelegate>delegate;
  46. @property (weak, nonatomic) IBOutlet UIView *voiceView;
  47. @property (weak, nonatomic) IBOutlet UIImageView *voiceNorImgV;
  48. @property (weak, nonatomic) IBOutlet UILabel *voiceTimeL;
  49. @property (weak, nonatomic) IBOutlet YYAnimatedImageView *animationView;
  50. @property (weak, nonatomic) IBOutlet NSLayoutConstraint *voiceViewHeight;
  51. @property(nonatomic,copy)ComCellBlock comCellEvent;
  52. @property(nonatomic,strong)HPGrowingTextView *toolTextView;
  53. - (void)requestData:(BOOL)flag andBtn:(UIButton *)replyBtn;
  54. -(void)showLandscapeSuper:(UIView*)view;
  55. @end
  56. NS_ASSUME_NONNULL_END