-2

ウィグル アニメーションを 10 個以上の要素に適用したいのですが、6 ~ 9 個の要素でうまく機能しています。要素が 10 個以上になるとウィグルは正常に適用されますが、アニメーション アプリでホーム ボタンを押しても反応しません。

私のコードは次のとおりです。

while(subviews)
{
    [UIView beginAnimations:@"wiggle" context:nil];

    [UIView setAnimationDuration:0.1];

    [UIView setAnimationRepeatAutoreverses:YES];

    [UIView setAnimationRepeatCount:FLT_MAX];

        //wiggle 1 degree both sides
    touchView.transform = CGAffineTransformMakeRotation(0.0174532925);

    touchView.transform = CGAffineTransformMakeRotation(-0.0174532925);

    [UIView commitAnimations];
}
4

1 に答える 1

0

アプリ デリゲートでビューへの参照を保持し、上のすべてのアニメーションをキャンセルしますapplicationWillResignActive:

于 2013-01-05T20:03:03.517 に答える