When I enter a character in the TextView Label displayed as an input when the two displays is 2 and so on. .
- (Void) textViewDidChange: (UITextView *) textView {
}
In this function you write, how to write it.
Reply:
Label.text = textView.text
Reply:
Enter the number of characters is displayed, oh, for example, enter 10 characters (1234567890) label is displayed as 10
Reply:
Themselves, and did not start writing stringWithFormat
NSString * textCount = textView.text;
int counts = [textCount length];
With a stringWithFormat can
label.text = [NSString stringWithFormat: @ "% d", counts];
No comments:
Post a Comment