Skip to content

Instantly share code, notes, and snippets.

@kwylez
Created March 27, 2011 17:46
Show Gist options
  • Save kwylez/889404 to your computer and use it in GitHub Desktop.
Save kwylez/889404 to your computer and use it in GitHub Desktop.
/**
* 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