ios4 - loading uiwebview from specified location -


//move bookmarked place if page opened bookmark section. - (void)webviewdidfinishload:(uiwebview *)webview1; { if(chkview == 2) {     //move webview chkscrollvalue position.     [webview stringbyevaluatingjavascriptfromstring:[nsstring stringwithformat:@"document.body.scrolltop = %d", chkscrollvalue]];     // [webview stringbyevaluatingjavascriptfromstring:[nsstring stringwithformat:@"window.scrollby(0,%d);",chkscrollvalue]]; } } 

i'm loading webview displaying html in resources folder , working fine. now, i'm using javascript html , not working anymore.

i got solution. performing task after webviewdidfinishload. rather added function , added code in function

[self performselector:@selector(loadbookmark) withobject:nil afterdelay:0.4];


Comments

Popular posts from this blog

c# - How to set Z index when using WPF DrawingContext? -

razor - Is this a bug in WebMatrix PageData? -

visual c++ - Using relative values in array sorting ( asm ) -