mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-19 09:46:56 +10:00
clean introduction placeholder before first time set it
This commit is contained in:
+1
-1
@@ -53,7 +53,7 @@ DEPENDENCIES:
|
||||
|
||||
EXTERNAL SOURCES:
|
||||
MZFayeClient:
|
||||
:path: "../CatchLib-iOS/MZFayeClient/"
|
||||
:path: ../CatchLib-iOS/MZFayeClient/
|
||||
|
||||
SPEC CHECKSUMS:
|
||||
1PasswordExtension: 9f471645d378283cb88c6d4bf502e4381a42c0ad
|
||||
|
||||
@@ -38,6 +38,16 @@ class EditProfileMoreInfoCell: UITableViewCell {
|
||||
|
||||
extension EditProfileMoreInfoCell: UITextViewDelegate {
|
||||
|
||||
func textViewShouldBeginEditing(textView: UITextView) -> Bool {
|
||||
|
||||
// 初次设置前,清空 placeholder
|
||||
if YepUserDefaults.introduction.value == nil {
|
||||
textView.text = ""
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
func textViewDidChange(textView: UITextView) {
|
||||
|
||||
infoTextViewIsDirtyAction?()
|
||||
|
||||
Reference in New Issue
Block a user