iOS同步动画

Mar*_*oul 1 iphone animation ipad ios

我的视图中有2张图片.只需点击一下按钮,我就可以同时将它们放在屏幕下方.我是否需要创建2个线程以使其同时运行,或者有一种简单的方法可以生成多个动画以同时启动.

任何教程或文档的链接都没问题,我可能会想到它(我试图在谷歌搜索但尚未找到我正在寻找的东西).

Rob*_*ods 6

- (IBAction)moveLowerOnClick{
       [UIView beginAnimations:nil context:NULL];
       self.somethingToMove.frame = CGRectOffset(self.somethingToMove.frame, 0, 50);
       self.anotherThingToMove.frame = CGRectOffset(self.anotherThingToMove.frame, 0, 50);
       [UIView commitAnimations];
}
Run Code Online (Sandbox Code Playgroud)

但在这里:iPhone UIView动画最佳实践是关于替代品的一些讨论