Last active
August 31, 2015 13:25
-
-
Save YGeorge/11394753 to your computer and use it in GitHub Desktop.
UITextView placeholder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void)textViewDidEndEditing:(UITextView *)txtView { | |
self.placeholderLabel.hidden = ([txtView.text length] > 0); | |
} | |
- (BOOL)textViewShouldBeginEditing:(UITextView *)textView { | |
self.placeholderLabel.hidden = YES; | |
return YES; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment