Commit 9d81745b authored by Steven杜宇's avatar Steven杜宇

// UI

parent 3cb995ed
...@@ -259,7 +259,9 @@ class YHInfoItemView: UIView { ...@@ -259,7 +259,9 @@ class YHInfoItemView: UIView {
detailLabel.text = item.value detailLabel.text = item.value
detailLabel.isHidden = isTextEdit detailLabel.isHidden = isTextEdit
textField.isHidden = !isTextEdit textField.isHidden = !isTextEdit
textField.placeholder = self.getPlaceHolder() let placeHolder = self.getPlaceHolder()
textField.attributedPlaceholder = NSAttributedString(string: placeHolder, attributes: [NSAttributedString.Key.foregroundColor : UIColor.placeHolderColor, NSAttributedString.Key.font: UIFont.PFSC_R(ofSize: 14)])
if item.id == .firstName || item.id == .lastName { if item.id == .firstName || item.id == .lastName {
textField.keyboardType = .asciiCapable // 英文键盘 textField.keyboardType = .asciiCapable // 英文键盘
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment