Created
March 27, 2011 17:46
-
-
Save kwylez/889404 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
/** | |
* origFrame and origCenter are properties | |
*/ | |
origFrame = self.customView.frame; | |
origCenter = self.customView.center; | |
[UIView animateWithDuration:2.0 | |
animations:^ { | |
self.customView.frame = CGRectMake(self.containerSubview.frame.origin.x, self.containerSubview.frame.origin.y, 200, 300); | |
self.containerSubview.alpha = 0.2; | |
self.customView.transform = CGAffineTransformConcat(CGAffineTransformMakeRotation(M_PI / 2), CGAffineTransformMakeScale(1.5, 1.5)); | |
self.customView.center = self.containerSubview.center; | |
} | |
completion:^(BOOL finished) { | |
NSLog(@"center point: %@", NSStringFromCGPoint(self.customView.center)); | |
} | |
]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment