UIWebView scrollBy replacement
صفحه اصلي

UIWebView scrollBy replacement

For an iPhone app I was using window.scrollBy to scroll to the bottom of a page. The page is rendered in a UIWebView. This all worked fine untill sdk 3.0. It is documented that scrollBy is not supported in UIWebView anymore. Is there an handy javascript replacement for window.scrollBy?

How make scrolling function with Interface builder on the iPhone?


How programatically move a UIScrollView to focus in a control above keyboard?
You must use the following methods to solve your problem.. How much of a transition is programming Java to iPhone apps? For receive ting the pageOffset:. Best client-side data store for iPhone web app? int pageYOffset = [[webViewObj stringByEvaluatingJavaScriptFromString:@"window.pageYOffset"] intValue];. How return back info from a child to parent in a NavigationController For receive ting the total scroll height of a webpage:. Do you tag your UIViews or retain them as properties? int scrollHeight = [[webViewObj stringByEvaluatingJavaScriptFromString:@"document.documentElement.scrollHeight"] intValue];. return value javascript UIWebView For scrolling the webpage to a particular offset:. Web image display in iPhone app [webViewObj stringByEvaluatingJavaScriptFromString:[NSString stringWithFormat:@"document.body.scrollTop = %d",scrollHeight ]];.

56 out of 100 based on 46 user ratings 486 reviews