Skip to content

Instantly share code, notes, and snippets.

@almostintuitive
Created August 30, 2014 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save almostintuitive/579c37decd0e95e54247 to your computer and use it in GitHub Desktop.
Save almostintuitive/579c37decd0e95e54247 to your computer and use it in GitHub Desktop.
ViewController-5.m
- (void)adjustViewBasedOnSwipeProgress:(float)progress {
self.tableView.spring.alpha = progress;
self.tableView.spring.center = CGPointMake(self.view.center.x*progress, self.view.center.y);
self.postWebView.spring.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