I tried to make Textview becomeFirstResponder but it fails. It's working fine with same code with iOS SDK 7 Don't know what's wrong with iOS SDK 8.2.
I am also checking canBecomeFirstResponder
too. It passes true for this but fails and returns NO for becomeFirstResponder
. Here I am doing this on viewWillAppear method and also tried in viewDidAppear Method.
Code
if([txtView canBecomeFirstResponder])
{
temp = [txtView becomeFirstResponder];
}
Also I have found same issues with others and they have suggested to use like below. But not working in my case with changing delay time too.
[txtView performSelector:@selector(becomeFirstResponder) withObject:nil afterDelay:0];
Please suggest If I require to change anything as per new iOS SDK releases.