摘要:
-(BOOL)textView:(UITextView *)textView shouldChangeTextInRange:(NSRange)range replacementText:(NSString *)text{ if([[textView text] length]>MaxNumberOfDescriptionChars){ return NO; } //判断是否为删除字符,如果为删除则让执行 char c=[text UTF8String][0]; if (c=='\000') { numberOfCharsLabel.text=[NSString stri 阅读全文