我有81个按钮。我想要做的是每个按钮都必须离开屏幕,而不是非屏幕按钮,它们必须回来。循环中按钮的动画ios
例如:
1.
***
***
***
2.
**
***
***
3.
*
***
***
等一个
比他们必须回来:
1.
*
2.
**
3.
***
等一个
我[UIView的animateWithDuration]中环试但它一起动画,不分割:
for(int i = 0 ; i < 9 ; i ++)
for(int j = 0 ; j < 9 ; j ++){
[uiview animateWithDuration:0.5f animations:^{
button.center = CGPointMake(self.view.frame.size.width, self.view.frame.size.height);
}
}
所有动画在一起,不拆 – poppytop