Created
March 11, 2010 19:26
-
-
Save btedev/329554 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @interface MainViewController : UIViewController <UITextViewDelegate> | |
| ... | |
| - (void)textViewDidChange:(UITextView *)textView { | |
| int chars = [textView.text length]; | |
| countLabel.text = [NSString stringWithFormat:@"%i/140",chars]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment