Hi all,
In my application, I'm forcefully showing/hiding keyboard by making textview becomefirstresponder and resignfirstresponder and also setting textview editable YES and NO respectively.
But after hiding keyboard if I tap on textview, the keyboard doesn't show up. I'm setting textview delegate to self. And the delegate method is firing up the first time but not after that.
EDIT: I'm using the following code which I am writing for a custom button-tap and checking flags to check keyboard is in hidden state or otherwise:
switch(rotationFlag)
{
case 0:
{
[self hideKeyboard];
rotationFlag = 1;
break;
}
case 1:
{
[self showKeyboard];
rotationFlag = 0;
break;
}
}
-(void)hideKeyboard{
[txtVwForPosts setEditable:FALSE];
[txtVwForPosts resignFirstResponder];
}
-(void)showKeyboard{
[txtVwForPosts setEditable:TRUE];
[txtVwForPosts becomeFirstResponder];
}
What is it that I'm doing wrong?
Can anybody please help? Thanx in advance.