UITextView光标位置的设置
更改UITextView的光标的位置:
- (void)textViewDidChangeSelection:(UITextView *)textView
{
NSRange range;
range.location = 0;
range.length = 0;
textView.selectedRange = range;
}
更改UITextView的光标的位置:
- (void)textViewDidChangeSelection:(UITextView *)textView
{
NSRange range;
range.location = 0;
range.length = 0;
textView.selectedRange = range;
}
本文标题:UITextView光标位置
本文链接:https://www.haomeiwen.com/subject/dnvgvdtx.html
网友评论