iphone - Whenever I use UIWebView loadHTMLString ,it's scrollView.contentOffset.y turns to 0 -


how can let webview memorize webview.scrowview.contenoffset localtion .so when download new data has animation frow down .

[webview.scrollview setcontentoffset:cgpointmake(0, 0) animated:yes];

try out line javascript

[webview stringbyevaluatingjavascriptfromstring:@"window.scroll(0,0)"]; 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -