アニメーションに問題があります。ここにいくつかのコードがあります:「UIView animateWithDuration:......」の使用に問題があります
//wobbling cells in collection view controller
if (_isEdit){
myCell.transform = CGAffineTransformMakeRotation(-0.01);
[UIView animateWithDuration:0.12
delay:0.0
options:UIViewAnimationOptionRepeat|UIViewAnimationOptionAutoreverse|UIViewAnimationOptionAllowUserInteraction|UIViewAnimationOptionCurveLinear
animations:^{
myCell.transform = CGAffineTransformMakeRotation(0.01);
} completion:nil];
}
私がしたいのは、 "_isEdit == YES;"細胞はぐらついている。
しかし、セルがウォブリングしているときに別のViewControllerを押すと、 が閉じられます。アニメーションの停止(「_isEdit」はまだ「YES」です)...
アニメーションはどのように機能させますか?
'self.isEdit'を使って試してみてください。 – PiyushRathi