修复bug
This commit is contained in:
@@ -45,7 +45,8 @@
|
||||
- (void)setConfigs {
|
||||
self.title = YMLocalizedString(@"XPLoginBindPhoneResultViewController0");
|
||||
NSMutableAttributedString *titleAtt = [[NSMutableAttributedString alloc]initWithString:YMLocalizedString(@"XPLoginBindPhoneResultViewController1") attributes:@{NSFontAttributeName:kFontSemibold(16),NSForegroundColorAttributeName:[DJDKMIMOMColor inputTextColor]}];
|
||||
NSAttributedString *phoneAtt = [[NSAttributedString alloc]initWithString:[NSString stringWithFormat:@"\n%@ %@",self.userInfo.phoneAreaCode,self.userInfo.phone] attributes:@{NSFontAttributeName:kFontSemibold(16),NSForegroundColorAttributeName:UIColorFromRGB(0x9168FA)}];
|
||||
NSString *phone = self.userInfo.phone.length > 0 ? self.userInfo.phone : @"";
|
||||
NSAttributedString *phoneAtt = [[NSAttributedString alloc]initWithString:[NSString stringWithFormat:@"\n%@ %@",self.userInfo.phoneAreaCode, phone] attributes:@{NSFontAttributeName:kFontSemibold(16),NSForegroundColorAttributeName:UIColorFromRGB(0x9168FA)}];
|
||||
[titleAtt appendAttributedString:phoneAtt];
|
||||
self.phoneLabel.attributedText = titleAtt;
|
||||
}
|
||||
|
Reference in New Issue
Block a user