Commit 98bd8c7b8ffbaf03f0ad05f782d41081fcb187de

Authored by zhangxiaowen
1 parent de5fbd04

no message

CNLiveSettingModule/Classes/UpdateTel/CNLiveUpdateTelView.m
@@ -37,7 +37,7 @@ static const NSInteger margin = 15; @@ -37,7 +37,7 @@ static const NSInteger margin = 15;
37 self = [super initWithFrame:frame]; 37 self = [super initWithFrame:frame];
38 if (self) { 38 if (self) {
39 self.backgroundColor = [UIColor whiteColor]; 39 self.backgroundColor = [UIColor whiteColor];
40 - [self setup]; 40 + [self createSubViews];
41 } 41 }
42 return self; 42 return self;
43 } 43 }
@@ -48,7 +48,7 @@ static const NSInteger margin = 15; @@ -48,7 +48,7 @@ static const NSInteger margin = 15;
48 } 48 }
49 49
50 #pragma mark - UI 50 #pragma mark - UI
51 -- (void)setup { 51 +- (void)createSubViews {
52 [self addSubview:self.countryName]; 52 [self addSubview:self.countryName];
53 [self addSubview:self.lineView]; 53 [self addSubview:self.lineView];
54 [self addSubview:self.countryImg]; 54 [self addSubview:self.countryImg];
@@ -196,6 +196,7 @@ static const NSInteger margin = 15; @@ -196,6 +196,7 @@ static const NSInteger margin = 15;
196 } 196 }
197 return _lineView; 197 return _lineView;
198 } 198 }
  199 +
199 - (UIImageView *)countryImg{ 200 - (UIImageView *)countryImg{
200 if (!_countryImg) { 201 if (!_countryImg) {
201 _countryImg = [[UIImageView alloc] init]; 202 _countryImg = [[UIImageView alloc] init];
@@ -208,6 +209,7 @@ static const NSInteger margin = 15; @@ -208,6 +209,7 @@ static const NSInteger margin = 15;
208 } 209 }
209 return _countryImg; 210 return _countryImg;
210 } 211 }
  212 +
211 - (UILabel *)countryCode { 213 - (UILabel *)countryCode {
212 if (!_countryCode) { 214 if (!_countryCode) {
213 _countryCode = [[UILabel alloc] init]; 215 _countryCode = [[UILabel alloc] init];
@@ -306,6 +308,7 @@ static const NSInteger margin = 15; @@ -306,6 +308,7 @@ static const NSInteger margin = 15;
306 [_binding addTarget:self action:@selector(bindingDidClicked:) forControlEvents:UIControlEventTouchUpInside]; 308 [_binding addTarget:self action:@selector(bindingDidClicked:) forControlEvents:UIControlEventTouchUpInside];
307 } 309 }
308 return _binding; 310 return _binding;
  311 +
309 } 312 }
310 313
311 #pragma mark - 私有方法 314 #pragma mark - 私有方法