iphone - Animating UIView and its sub layers -
I have a subclassed UIView that contains several layers (mostly CATextre with some CATextLayers) I have the problem If I want to resize the UIView and relay the available override layout shovels by using AIVi blocks (start approvals, cut animation), the layers are not animated with UIView.
Below is the code to revive the frame of UIView's:
miniView.backgroundColor = [UIColor orangeColor]; [UIView startup permissions: zero reference: zero]; [UIView Set Animation Duration: 1.0f]; [UIView Set Animation Cave: UIViewAnimationCurveEaseInOut]; [UIView Set Animation Recurrence Number: MAXFLOAT]; [UIView Set Animation Re: Copy: Yes]; MiniView.frame = newFrame; [UIView commitAnimations];
So the problem is that the scene is animated properly, but not sublayer. I see that growing and shrinking, but the sailors need to move quickly and then stay in newer sizes. When the scene is resized, what is the best way to resize the sublayers of a scene? And how do I see those things basically?
I would like to see more code to actually fix the problem, though you would rather see miniwews Try to animate the layer.
CABasicAnimation * animation = [CABasicAnimation animationWithKeyPath: @ "transform.scale"]; Animation.frame value = [nsnumber number bloat: 0.0]; Animation. Toll Value = [NSNumber Number Blast: 1.0]; // Additional setup ... [Miniview. Layer layoutif unsolved]; [Miniview. Player Ad Animation: Animation Fork: @ "Whatever Wood"];
Instead of using UIKit animation it should be more flexible after hanging it.
Comments
Post a Comment