TDShareButtonView.m 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. //
  2. // TDShareButtonView.m
  3. // smartRhino
  4. //
  5. // Created by tederen on 2019/10/31.
  6. // Copyright © 2019 tederen. All rights reserved.
  7. //
  8. #import "TDShareButtonView.h"
  9. @interface TDShareButtonView()
  10. @property (nonatomic, strong) UIView *myBackGroundView;
  11. @property (nonatomic, strong) UIImageView *iconImageView;
  12. @property (nonatomic, strong) UILabel *titleLab;
  13. @end
  14. @implementation TDShareButtonView
  15. - (instancetype)initWithFrame:(CGRect)frame
  16. {
  17. self = [super initWithFrame:frame];
  18. if (self) {
  19. self.backgroundColor = [UIColor clearColor];
  20. self.myBackGroundView = [[UIView alloc]init];
  21. self.myBackGroundView.backgroundColor = [UIColor whiteColor];
  22. self.myBackGroundView.frame = CGRectMake(0, 0, 60, 60);
  23. [self addSubview:self.myBackGroundView];
  24. self.titleLab.textColor = UIColorHex(333333);
  25. self.titleLab.font = [UIFont systemFontOfSize:12.f];
  26. self.frame = CGRectMake(0, 96, 60, 12);
  27. // [self addSubview:self.bgView];
  28. //
  29. // [self.bgView addSubview:self.wechatButton];
  30. // [self.bgView addSubview:self.friendButton];
  31. // [self.bgView addSubview:self.weiboButton];
  32. // [self.bgView addSubview:self.tencentButton];
  33. // [self.bgView addSubview:self.sendInfoButton];
  34. // [self.bgView addSubview:self.sendGroupButton];
  35. // [self.bgView addSubview:self.sendNoteButton];
  36. // [self.bgView addSubview:self.sendTopicButton];
  37. // [self.bgView addSubview:self.cancelButton];
  38. //
  39. // _wechatButton.frame = CGRectMake(0, 0, kGXScreenWidth/4.0, 100);
  40. // _friendButton.frame = CGRectMake(kGXScreenWidth/4.0, 0, kGXScreenWidth/4.0, 100);
  41. // _weiboButton.frame = CGRectMake(kGXScreenWidth/2.0, 0, kGXScreenWidth/4.0, 100);
  42. // _tencentButton.frame = CGRectMake(kGXScreenWidth/4.0 * 3, 0, kGXScreenWidth/4.0, 100);
  43. // _wechatButton.frame = CGRectMake(0, 0, kGXScreenWidth/4.0, 100);
  44. // _sendInfoButton.frame = CGRectMake(kGXScreenWidth/4.0, 0, kGXScreenWidth/4.0, 100);
  45. // _sendGroupButton.frame = CGRectMake(kGXScreenWidth/2.0, 0, kGXScreenWidth/4.0, 100);
  46. // _sendTopicButton .frame = CGRectMake(kGXScreenWidth/4.0 * 3, 0, kGXScreenWidth/4.0, 100);
  47. // _cancelButton.frame = CGRectMake(0,self.bgView.frame.size.height -110, kGXScreenWidth, 45);
  48. // _cancelButton.frame = CGRectMake(0,self.bgView.frame.size.height -110, kGXScreenWidth, 45);
  49. //
  50. // UIView *lineView = [[UIView alloc]init];
  51. // lineView.backgroundColor = UIColorHex(CCCCCC);
  52. // lineView.frame = CGRectMake(0, 125,kGXScreenWidth,0.5);
  53. // [self.bgView addSubview:lineView];
  54. // [_wechatButton verticalImageAndTitle:20.f];
  55. // [_friendButton verticalImageAndTitle:20.f];
  56. // [_weiboButton verticalImageAndTitle:20.f];
  57. // [_tencentButton verticalImageAndTitle:20.f];
  58. //
  59. // UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(removeFromSuperview)];
  60. // [self addGestureRecognizer:tap];
  61. }
  62. return self;
  63. }
  64. @end