I have two I'm going to animate Here's my animation block: I should read the document more carefully when it comes to conversion Since the changes are dependent on the center point of a scene, I can not do the animation simultaneously with a conversion at the UIVive level and modifying the center. Since the center has a dependency for change, it must be set up immediately and then the rest of the animation may be. The solution was to animate on the layer of a scene using the group animation I was able to animate: center point, scaling and rotation. The blog and the sample project is coming soon. UIViews (A and B) as the
subviews
View A for a
UIViewcontroller
main view (supervision) Trying (to scale / rotate) / Move to the center of
see a then
see A center point animation is instant and jerky, but smooth rotation / scaling is.
[UIView animeaththithtion: 2.0 Animation: ^ {custom.view =frameframe = CGRectMake (self.containerSubview.frame.origin.x) , Self.contenterviewview.fr.origin.a, 200, 300); Self.containerSubview.alpha = 0.2; Self.customView.transform = CGAffineTransformConcat (CGFFEF Transmommentation (M_PI / 2), CGPhen Transformmaskel (1.5, 1.5)); Self.customView.center = self.containerSubview.center; } Closing: ^ (BOOL Finish) {NSLog (@ "Center Point:% @", NSStringFromCromoint (self.customView.center)); }];
Comments
Post a Comment