javascript - Stopping Scrolling and Bounce on UIWebView on xCode6 / iOS-8 -
i've created game using css/js/html , launch page html document running within uiwebview.. however.. when app runs either in simulator or on device (iphone4/5) screen scrolls downwards , bounces.. on ipad isn't case, fine.
i've read quite few answers here on s/o none of them cover xcode6 / ios8
any advice etc great, thanks..
cheers
set delegate webview
-(void)webviewdidfinishload:(uiwebview *)webview{ [webview.scrollview setcontentsize:cgsizemake(webview.frame.size.width, webview.scrollview.contentsize.height)]; // or webview.scrollview.scrollenabled=no; }
hopo help!!
javascript ios css objective-c uiwebview
No comments:
Post a Comment