clean introduction placeholder before first time set it

This commit is contained in:
nixzhu
2015-11-11 12:59:03 +08:00
parent 4195164309
commit bd4533fb33
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -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?()