1

In my app, I have a hacked method to remove the "Previous/Next/Done Accessory Toolbar" on iOS7. My app is exported for iOS7, and of course runs on iOS8 - but I'm using older SDK.

When I run my app on iOS7 the bar is removed completely, and all I have is the keyboard - Awesome!

When I run my app on iOS8 the bar is back AND it has predictive text - it's horrible - I don't need ANY of these stupid bars in my app, it's just taking up space.

Is there a way to remove the toolbars from the UIKeyBoard within a UIWebView in iOS8 just like there was for iOS7, or am I going to just have to say "f it", and undo my hacks and just deal with the annoying extra toolbars that UIWebView thinks I want?

(This is why I dislike hybrid apps, but the code is already finished, and I cannot afford to switch to native, haha.)

daemon
  • 251
  • 3
  • 21
  • try change the keyboardType. Maybe some it´s good for you. By example: yourTextField.keyboardType = UIKeyboardTypeEmailAddress; – Onik IV Nov 13 '14 at 20:56
  • keyboardtype to email, means i get a tiny space bar, and auto correct is disabled. this also keeps the previous/done/next bar - this will not help me in my situation. – daemon Nov 13 '14 at 20:59
  • Is this link any help? [http://stackoverflow.com/questions/6461101/how-can-i-prevent-keyboard-autocompletion-in-mobilesafari-uiwebview][1] – Raica Dumitru Cristian Nov 13 '14 at 21:58
  • No, I don't mind auto completion, i DO mind predictive text bar, which is the new iOS8 bar that sits on top of the keyboard and shows 3 predicted words of what you are trying to type next - this has NOTHING to do with autocompletion which suggests words in the actual input text area via a small bubble. – daemon Nov 13 '14 at 22:05
  • 1
    I found the solution for iOS 8. You can check it here: [ iOS 8 - Remove Previous/Next/Done UIKeyboard Toolbar inside a UIWebView][1] [1]: http://stackoverflow.com/questions/25022089/remove-next-previous-buttons-inputaccessoryview-for-custom-keyboard-in-ios8 – Gaurav Dec 03 '14 at 09:26

1 Answers1

0

Use this , it works like a charm and it is much cleaner than the other solutions. It's hacking with the inputAccessoryView for UIWebBrowserView (inner UIWebView).

Good luck with coding!

Balazs Nemeth
  • 2,333
  • 19
  • 29