Skip to content

Instantly share code, notes, and snippets.

@almostintuitive
Created August 30, 2014 13:20
Show Gist options
  • Save almostintuitive/b55acae4f1aa0bb92bf1 to your computer and use it in GitHub Desktop.
Save almostintuitive/b55acae4f1aa0bb92bf1 to your computer and use it in GitHub Desktop.
ViewController-3.m
- (void)adjustViewBasedOnSwipeProgress:(float)progress {
self.tableView.alpha = progress;
self.tableView.center = CGPointMake(self.view.center.x*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