-2
我想應用擺動動畫超過10個elements.It工作正常6 - 9元素。如果元素成功應用超過10個擺動,但是,如果我在動畫應用程序未響應時按Home按鈕。UIView動畫repeatcount多視圖
我的代碼是:
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];
}
嗨蒙迪感謝您的回覆,但我試過了applicationWillResignActive:方法沒有得到調用之前的應用程序卡住 – Madhubalan