Created
January 27, 2015 02:44
-
-
Save Me1000/9e403383da23be2fc918 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// totally works! | |
[UIView animateWithDuration:0.5 | |
delay:0 | |
usingSpringWithDamping:.5 | |
initialSpringVelocity:1 | |
options:0 | |
animations:^{ | |
CGRect bounds = self.scrollview.bounds; | |
bounds.origin = CGPointZero; | |
self.scrollview.bounds = bounds; | |
} completion:^(BOOL finished) { | |
NSLog(@"Bounds: %@", NSStringFromCGRect(self.scrollview.bounds)); | |
NSLog(@"offset: %@", NSStringFromCGPoint(self.scrollview.contentOffset)); | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment