Hello, I want a counter that shows in a UILabel how many charachters the UITextView has.
I tried this:
IBOutlet UITextView *twittermessage;
UIActionSheet * loadingActionSheet;
IBOutlet UILabel * anzahl;
Here the .m:
- (void)textViewDidChange:(UITextView *)twittermessage{
int count = [twittermessage.text length];
anzahl.text = (NSString *)count;
}
Thanks for your help and sorry for my bad English.