iOS UITextView

1. 限制字长

http://blog.csdn.net/fengsh998/article/details/45421107

2. 光标位置

http://blog.csdn.net/ouy_huan/article/details/7513108

UITextView *_textView=[[UITextView alloc]initWithFrame:self.view.frame];

_textView.text=textString;

_textView.selectedRange=NSMakeRange(0,0) ;   //起始位置

_textView.selectedRange=NSMakeRange(textString.length,0);

你可能感兴趣的:(iOS UITextView)