Sometimes when I go from one page to another, the keyboard pops up from the middle, and then when the page is fully displayed, the keyboard falls down again, and this situation doesn’t happen every time.
-(void)viewDidAppear:(BOOL)animated{
[super viewDidAppear:animated];
[self.phoneNumTF becomeFirstResponder];
}
- (BOOL)becomeFirstResponder {
[super becomeFirstResponder];
return [self.phoneNumTF becomeFirstResponder];
}
I tried to delay the response time, but it didn’t seem to work. Also, deleting keyboard notifications didn’t have much effect, and removing the following method didn’t work either:
- (BOOL)becomeFirstResponder {
[super becomeFirstResponder];
return [self.phoneNumTF becomeFirstResponder];
}
New contributor
Kiwi Zhang is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.