iOS 8 - UIWebView Keyboard - Previous/Next/Done Accessory Bar - How can I remove the toolbar?

1.7k Views Asked by At

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.)

1

There are 1 best solutions below

2
On

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!