标签:os io for ios ui text view c
//控制输入框的字数
- (void)textViewDidChange:(UITextView *)textView
{
NSInteger number = [textView.text length];
if (number > 300) {
textView.text = [textView.text substringToIndex:300];
number = 300;
}
_evalutionLimitNumberLabel.text=[NSString stringWithFormat:@"%i/300",number];
}
iOS 控制输入框的字数?(textFliedView,textFlied等),布布扣,bubuko.com
iOS 控制输入框的字数?(textFliedView,textFlied等)
标签:os io for ios ui text view c
原文地址:http://www.cnblogs.com/Ewenblog/p/3884469.html