I am working on phone Gap application in which i am using my custom jquery keyboard but when i focus on the input the native keyboard of device is open. I did't have knowledge of objective-C so please can u help me to prevent the native keyboard on ios device when i click on the text field.
I am trying to do but it's work only for one time when i double click on the input field the application is crashed.
my code is..
// register for keyboard show event
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(keyboardWillShow:)
name:UIKeyboardWillShowNotification
object:nil];
// hiding UIWebviewAccessary
// http://ios-blog.co.uk/iphone-development-tutorials/rich-text-editing-a-simple-start-part-1/
- (void)keyboardWillShow:(NSNotification *)note {
[self.view endEditing:YES];
[self removeBar];
[self performSelector:@selector(adjustFrame) withObject:nil afterDelay:0.03];
}
- (void)adjustFrame {
[self.webView stringByEvaluatingJavaScriptFromString:@"window.scroll(0,0)"];
}