MessageHeaderV.m 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. //
  2. // MessageHeaderV.m
  3. // YBVideo
  4. //
  5. // Created by YunBao on 2018/7/13.
  6. // Copyright © 2018年 cat. All rights reserved.
  7. //
  8. #import "MessageHeaderV.h"
  9. @implementation MessageHeaderV
  10. - (void)awakeFromNib{
  11. [super awakeFromNib];
  12. [_fansBtn setTitle:YZMsg(@"粉丝") forState:0];
  13. [_zanBtn setTitle:YZMsg(@"赞") forState:0];
  14. [_aiTeBtn setTitle:YZMsg(@"@我的") forState:0];
  15. [_commentBtn setTitle:YZMsg(@"评论") forState:0];
  16. }
  17. - (IBAction)clickFansBtn:(UIButton *)sender {
  18. if (self.msgEvent) {
  19. self.msgEvent(@"粉丝");//======>不需要翻译
  20. }
  21. }
  22. - (IBAction)clickZanBtn:(UIButton *)sender {
  23. if (self.msgEvent) {
  24. self.msgEvent(@"赞");
  25. }
  26. }
  27. - (IBAction)clickAiTeBtn:(UIButton *)sender {
  28. if (self.msgEvent) {
  29. self.msgEvent(@"@我的");
  30. }
  31. }
  32. - (IBAction)clickCommentBtn:(UIButton *)sender {
  33. if (self.msgEvent) {
  34. self.msgEvent(@"评论");
  35. }
  36. }
  37. -(void)clearRedPoint;{
  38. _fansPoint.hidden = YES;
  39. _zanPoint.hidden = YES;
  40. _atPoint.hidden = YES;
  41. _comPoint.hidden = YES;
  42. }
  43. @end