I have an application where I have to implement customised QuickType Suggestion at the top of onScreen Keyboard. Where(QuickType Suggestion Box) the right button behaviour is like as that keyboard return type behaviour. If the keyBoard return key is "next" then the suggestion's right key will be "next", if "Done" then it also has to be "Done" along with the type action. I had attested three buttons along with the top of that keyboard when it's appear. But I can't figure out, how to work with it? Is it possible to do with this trick? and how? If, there another ways to do that, please suggest.
The following way worked for me:
-(IBAction)customNextButtonAction:(id)sender {
for (UITextField *textField in [self.textFieldContainingView subviews]) {
if ([textField isKindOfClass:[UITextField class]] && textField == self.desiredTextField) {
[self.desiredTextField resignFirstResponder];
UIView *next = self.nextTextField;
[next becomeFirstResponder];
}
}
}
Thanks all to help me.