I have had to change a UIScrollView into a UIWebView due to formatting reasons.
There is a problem though that I need to be able to get the content offset back to 0, 0 (as I am using reusable UIWebViews and changing content) and get the content size so I can place a button at the bottom; but UIWebView does not seem to have this.
The best way I found to sort the problem was:
UIWebViewUIScrollViewUsing the “- (void)webViewDidFinishLoad:(UIWebView *)webView {” delegate method I detect the size of the
UIWebViewSet the frame of the
UIWebViewto the content size.UIWebViewUIScrollViewto the content size.Then used the functionality of the
UIScrollViewinstead of theUIWebView.Thanks
-JM