私のコードは以下のとおりです、
int i;
for (i=1; i < 13; i++ ){
UIButton * myButton1 = (UIButton *)([self.view viewWithTag:i]);
NSString *imageLoop2=[NSString stringWithFormat:@"%@",[arr1 objectAtIndex:i-1]];
[UIView beginAnimations:@"Flip" context:NULL];
[UIView setAnimationDuration:0.60];
[UIView setAnimationDelegate:self];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight forView:myButton1 cache:NO];
myButton1.userInteractionEnabled = NO;
myButton1.alpha=1.0f;
[myButton1 setBackgroundImage:[UIImage imageNamed:imageLoop2] forState:UIControlStateNormal];
[UIView commitAnimations];
}
同じ時間内にすべてのボタンを反転します。
しかし、私の問題は、「最初のボタンが完全にフリップアニメーションになり、次に2番目のボタンがフリップを開始する」という男性が1人ずつフリップすることです。
提案をお願いします。
ありがとう