UIViewがあり、アニメーション化しています。ここで重要なのは、theView
アニメーション化されたらリリースする必要があるということです。
originalRECT = [[UIScreen mainScreen] bounds];
if(theView)
{
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.3];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
theView setFrame = originalRECT;
[UIView commitAnimations];
[theView autorelease];
theView = nil;
}
したがって、コードがtheViewをnilに設定していることはわかっていますが、アニメーションdoes finish ok
(SIGABRTなどはありません)
または、ビューが消えたことを知るために使用できるコールバック関数はありますか?この場合、どうすればそのような関数を使用できますか?
ありがとう!