摘要: -(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 阅读全文
posted @ 2014-01-05 21:27 lihuang 阅读(341) 评论(0) 推荐(0) 编辑