I'm trying to create a text entry widget for my app. I found XCDFormInputAccessoryView example on Github and modified it so the text field is located on the accessory view. This, in theory, allows me to call the text entry widget from any part of my app.
To clarify: there is no textField in any of the view controllers for which I want to present this widget.
However, I cannot seem to figure out how to present the text entry widget. I tried:
[self.inputAccessoryView becomeFirstResponder];
[self.inputAccessoryView.textField becomeFirstResponder];
[[UIApplication sharedApplication] sendAction:@selector(becomeFirstResponder) to:nil from:nil forEvent:nil];
[[UIApplication sharedApplication] sendAction:@selector(becomeFirstResponder) to:self.inputAccessoryView.textField from:nil forEvent:nil];
How can I make the keyboard to show IF the text field for which it is shown is an accessory to the keyboard itself?