Reputation: 462
I've noticed one of the annoying things about my UITextFields and UITextViews is I have a programatically created UIToolBar above it for a Previous, Next and Done buttons that interact with the text fields gets hidden when the predictive text appears.
I was wondering if there was a way to disable this programatically or detect it so I can move the toolbar up or down depending on whether it is showing or hidden. Or is this feature only available in Swift? I'm still using Objective-C.
Upvotes: 2
Views: 1655
Reputation: 4044
Make your toolbar the inputAccessoryView of your text fields and text views, and you'll be good to go.
Upvotes: 3