I want to to set the cursor position based on the x,y coordinates on the text view. For example I want cursor position on (10,5,300,462), I want to insert the text this frame only based on cursor.
In view did load i set the delegate and use the NSMakeRange()
function
- (void)viewDidLoad
{
[super viewDidLoad];
_TextView.delegate=self;
_TextView.editable = YES;
[_TextView setSelectedRange:NSMakeRange(5,0)];
}
I create a text view with frame of (10,22,300,462) and added to the view. My reqirement is i want display the cursor on text base on x,y coordinates x=10 after and y=5 after in the text view ...