1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374 |
- //
- // TDShareButtonView.m
- // smartRhino
- //
- // Created by tederen on 2019/10/31.
- // Copyright © 2019 tederen. All rights reserved.
- //
- #import "TDShareButtonView.h"
- @interface TDShareButtonView()
- @property (nonatomic, strong) UIView *myBackGroundView;
- @property (nonatomic, strong) UIImageView *iconImageView;
- @property (nonatomic, strong) UILabel *titleLab;
- @end
- @implementation TDShareButtonView
- - (instancetype)initWithFrame:(CGRect)frame
- {
- self = [super initWithFrame:frame];
- if (self) {
- self.backgroundColor = [UIColor clearColor];
- self.myBackGroundView = [[UIView alloc]init];
- self.myBackGroundView.backgroundColor = [UIColor whiteColor];
- self.myBackGroundView.frame = CGRectMake(0, 0, 60, 60);
- [self addSubview:self.myBackGroundView];
-
-
- self.titleLab.textColor = UIColorHex(333333);
- self.titleLab.font = [UIFont systemFontOfSize:12.f];
- self.frame = CGRectMake(0, 96, 60, 12);
-
-
-
- // [self addSubview:self.bgView];
- //
- // [self.bgView addSubview:self.wechatButton];
- // [self.bgView addSubview:self.friendButton];
- // [self.bgView addSubview:self.weiboButton];
- // [self.bgView addSubview:self.tencentButton];
- // [self.bgView addSubview:self.sendInfoButton];
- // [self.bgView addSubview:self.sendGroupButton];
- // [self.bgView addSubview:self.sendNoteButton];
- // [self.bgView addSubview:self.sendTopicButton];
- // [self.bgView addSubview:self.cancelButton];
- //
- // _wechatButton.frame = CGRectMake(0, 0, kGXScreenWidth/4.0, 100);
- // _friendButton.frame = CGRectMake(kGXScreenWidth/4.0, 0, kGXScreenWidth/4.0, 100);
- // _weiboButton.frame = CGRectMake(kGXScreenWidth/2.0, 0, kGXScreenWidth/4.0, 100);
- // _tencentButton.frame = CGRectMake(kGXScreenWidth/4.0 * 3, 0, kGXScreenWidth/4.0, 100);
- // _wechatButton.frame = CGRectMake(0, 0, kGXScreenWidth/4.0, 100);
- // _sendInfoButton.frame = CGRectMake(kGXScreenWidth/4.0, 0, kGXScreenWidth/4.0, 100);
- // _sendGroupButton.frame = CGRectMake(kGXScreenWidth/2.0, 0, kGXScreenWidth/4.0, 100);
- // _sendTopicButton .frame = CGRectMake(kGXScreenWidth/4.0 * 3, 0, kGXScreenWidth/4.0, 100);
- // _cancelButton.frame = CGRectMake(0,self.bgView.frame.size.height -110, kGXScreenWidth, 45);
- // _cancelButton.frame = CGRectMake(0,self.bgView.frame.size.height -110, kGXScreenWidth, 45);
- //
- // UIView *lineView = [[UIView alloc]init];
- // lineView.backgroundColor = UIColorHex(CCCCCC);
- // lineView.frame = CGRectMake(0, 125,kGXScreenWidth,0.5);
- // [self.bgView addSubview:lineView];
- // [_wechatButton verticalImageAndTitle:20.f];
- // [_friendButton verticalImageAndTitle:20.f];
- // [_weiboButton verticalImageAndTitle:20.f];
- // [_tencentButton verticalImageAndTitle:20.f];
- //
- // UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:self action:@selector(removeFromSuperview)];
- // [self addGestureRecognizer:tap];
- }
- return self;
- }
- @end
|