Hello Everyone,
Since last week, I am facing a problem with UITextView. The problem is, Whenever I am trying to place the cursor position in my text view, it gets editable (which I don't want) and because of that keyboard appears.
Basically, I want to set the cursor position on the UITextView without making it editable. I am forcefully hiding the default keyboad with the below shown code, but it is appearing whenever i touch the UITextView.
- (void)textViewDidChangeSelection

UITextView *)textView{
[NSTimer scheduledTimerWithTimeInterval:0.001 target:self selector:@selector(resign2) userInfo:nil repeats:NO];
}
- (void)scrollRangeToVisible

NSRange)range{
txtVIew.scrollEnabled = YES;
}
- (BOOL)textViewShouldBeginEditing

UITextView *)textView{
[NSTimer scheduledTimerWithTimeInterval:0.001 target:self selector:@selector(resign2) userInfo:nil repeats:NO];
}
- (BOOL)textViewShouldEndEditing

UITextView *)textView{
[NSTimer scheduledTimerWithTimeInterval:0.001 target:self selector:@selector(resign2) userInfo:nil repeats:NO];
}
-(void)resign2{
if([txtVIew isFirstResponder])
[txtVIew resignFirstResponder];
}
I have my own keyboard for typing on UITextView and I want to hide the default keyboard.
If any body has any solution for this problem, then please do let me know.