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