Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

cocoa:how webview disable the scrollbar

webview disable the scrollbar Two -finger scrolling, I would like to ban .

Like this can not

[[webView windowScriptObject]evaluateWebScript:@" document.body.style.overflowX='hidden';"];

enter image description here

like image 864
小弟调调 Avatar asked Apr 22 '12 06:04

小弟调调


1 Answers

[[[webView mainFrame] frameView] setAllowsScrolling:NO];
like image 93
bogdansrc Avatar answered Sep 28 '22 22:09

bogdansrc