开发者

animation in one direction

开发者 https://www.devze.com 2022-12-30 11:55 出处:网络
i like to animate my image \"finga\" not centered but from left or right: [UIView beginAnimations:nil context:nil];开发者_StackOverflow社区

i like to animate my image "finga" not centered but from left or right:

[UIView beginAnimations:nil context:nil];                               开发者_StackOverflow社区   
[UIView setAnimationRepeatCount:1];
finga.transform = CGAffineTransformMakeScale(2,1.5);
finga.animationDuration = 2;
[UIView commitAnimations];


If I understand your question, you need to move the finga view off screen left or right (set the frame) prior to doing your animation.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号