I have a textfield with a hidden keyboard (since I'm using it with bluetooth). However, in iOS9 the shortcut bar keeps appearing.
Is there a way to hide it too?
Thank you so much!
When you open Facebook on your iPhone, iPad or Android device, you'll see a menu with shortcuts to things like Events or Groups. From this shortcut bar, you'll also see notification dots to let you know about recent activity. You can change and personalize these shortcuts, and also turn off notifications dots.
You can pass your textfield name in place of userNameTextField for which you want to remove shortcut bar.
UITextInputAssistantItem* item = [userNameTextField inputAssistantItem]; item.leadingBarButtonGroups = @[]; item.trailingBarButtonGroups = @[];
In Swift 2.0
if #available(iOS 9.0, *) { let item : UITextInputAssistantItem = yourTextView.inputAssistantItem item.leadingBarButtonGroups = [] item.trailingBarButtonGroups = [] } else { // Fallback on earlier versions }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With