简体   繁体   中英

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

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

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM