Skip to content

Instantly share code, notes, and snippets.

@almostintuitive
Created August 30, 2014 13:19
Show Gist options
  • Save almostintuitive/ed89a0e52410da8ea4ae to your computer and use it in GitHub Desktop.
Save almostintuitive/ed89a0e52410da8ea4ae to your computer and use it in GitHub Desktop.
ViewController-2.m
- (void)adjustViewBasedOnSwipeProgress:(float)progress {
self.tableView.center = CGPointMake(self.view.center.x-(self.view.bounds.size.width*(1-progress)), self.view.center.y);
self.postWebView.center = CGPointMake(self.view.center.x+(self.view.bounds.size.width*progress), self.view.center.y);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment