// // MyTDGroupView.m // smartRhino // // Created by tederen on 2019/10/31. // Copyright © 2019 tederen. All rights reserved. // #import "MyTDGroupView.h" @interface MyTDGroupView() @end @implementation MyTDGroupView - (instancetype)init { self = [super init]; if (self) { self.backgroundColor = [UIColor whiteColor]; [self addSubview:self.button]; self.button.frame = CGRectMake(15,10,kGXScreenWidth - 30,30); } return self; } - (TDButton *)button{ if (!_button) { _button = [[TDButton alloc] init]; [_button setTitle:@" 搜索" forState:UIControlStateNormal]; [_button setBackgroundColor:UIColorHex(F5F6F8)]; [_button setTitleColor:UIColorHex(ABACAE) forState:UIControlStateNormal]; [[_button titleLabel] setFont:[UIFont fontWithName:@"PingFang-SC-Regular" size:13.f]]; [_button setImage:IMG(@"sousuo") forState:UIControlStateNormal]; _button.layer.cornerRadius = 15; _button.layer.masksToBounds = YES; } return _button; } @end