UIWebView Keyboard - Getting rid of the “Previous/Next/Done” bar

后端 未结 9 2140
清酒与你
清酒与你 2020-12-13 07:05

I want to get rid of the bar on top of the keyboard that appears when you focus a text field in a webview. We have some other ways of handling this and it\'s redundant and

9条回答
  •  忘掉有多难
    2020-12-13 08:01

    It looks like there is a very simple way, but I'm pretty sure it will not pass the App Store review. Maybe someone has a clever idea? ;)

    @interface UIWebBrowserView : UIView
    @end
    
    @interface UIWebBrowserView (UIWebBrowserView_Additions)
    @end
    
    @implementation UIWebBrowserView (UIWebBrowserView_Additions)
    
    - (id)inputAccessoryView {
        return nil;
    }
    
    @end
    

提交回复
热议问题