Skip to content

Instantly share code, notes, and snippets.

@nickyp
Created September 14, 2010 09:07
Show Gist options
  • Save nickyp/578770 to your computer and use it in GitHub Desktop.
Save nickyp/578770 to your computer and use it in GitHub Desktop.
// Save state of UITableView scroll position:
save CGPoint contentOffset = self.view.contentOffset;
[myWebView stringByEvaluatingJavaScriptFromString:@"window.scrollTo(0,0);"];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment