2
This commit is contained in:
@@ -120,7 +120,7 @@
|
||||
- (UILabel *)titleLabel {
|
||||
if (!_titleLabel) {
|
||||
_titleLabel = [UILabel new];
|
||||
_titleLabel.text = @"Change The Nickname";
|
||||
_titleLabel.text = KBLocalized(@"Change The Nickname");
|
||||
_titleLabel.textColor = [UIColor blackColor];
|
||||
_titleLabel.font = [UIFont systemFontOfSize:22 weight:UIFontWeightBold];
|
||||
}
|
||||
@@ -141,7 +141,7 @@
|
||||
[_closeButton setTitleColor:[UIColor colorWithWhite:0.3 alpha:1] forState:UIControlStateNormal];
|
||||
_closeButton.tintColor = [UIColor colorWithWhite:0.3 alpha:1];
|
||||
[_closeButton addTarget:self action:@selector(onTapClose) forControlEvents:UIControlEventTouchUpInside];
|
||||
_closeButton.accessibilityLabel = @"关闭";
|
||||
_closeButton.accessibilityLabel = KBLocalized(@"Close");
|
||||
}
|
||||
return _closeButton;
|
||||
}
|
||||
@@ -161,7 +161,7 @@
|
||||
_textField.clearButtonMode = UITextFieldViewModeWhileEditing;
|
||||
_textField.font = [UIFont systemFontOfSize:18 weight:UIFontWeightSemibold];
|
||||
_textField.textColor = [UIColor blackColor];
|
||||
_textField.placeholder = @"Please Enter The Modified Nickname";
|
||||
_textField.placeholder = KBLocalized(@"Please Enter The Modified Nickname");
|
||||
}
|
||||
return _textField;
|
||||
}
|
||||
@@ -169,7 +169,7 @@
|
||||
- (UIButton *)saveButton {
|
||||
if (!_saveButton) {
|
||||
_saveButton = [UIButton buttonWithType:UIButtonTypeCustom];
|
||||
[_saveButton setTitle:@"Save" forState:UIControlStateNormal];
|
||||
[_saveButton setTitle:KBLocalized(@"Save") forState:UIControlStateNormal];
|
||||
[_saveButton setTitleColor:UIColor.whiteColor forState:UIControlStateNormal];
|
||||
_saveButton.titleLabel.font = [UIFont systemFontOfSize:20 weight:UIFontWeightSemibold];
|
||||
_saveButton.backgroundColor = [UIColor colorWithRed:0.02 green:0.75 blue:0.67 alpha:1.0];
|
||||
@@ -180,4 +180,3 @@
|
||||
}
|
||||
|
||||
@end
|
||||
|
||||
|
||||
@@ -160,7 +160,7 @@
|
||||
_minusTapArea = [[UIControl alloc] init];
|
||||
_minusTapArea.backgroundColor = [UIColor clearColor];
|
||||
// 提高命中率:即使轻微偏离也能点中
|
||||
_minusTapArea.accessibilityLabel = @"删除";
|
||||
_minusTapArea.accessibilityLabel = KBLocalized(@"Delete");
|
||||
}
|
||||
return _minusTapArea;
|
||||
}
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
}];
|
||||
[self.coverView mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.top.left.right.equalTo(self.cardView);
|
||||
make.height.equalTo(self.cardView.mas_width).multipliedBy(0.66); // 接近截图比例
|
||||
make.height.mas_equalTo(KBFit(126));
|
||||
}];
|
||||
[self.titleLabel mas_makeConstraints:^(MASConstraintMaker *make) {
|
||||
make.left.equalTo(self.cardView).offset(12);
|
||||
|
||||
Reference in New Issue
Block a user