アプリケーションがクラッシュすることはめったにありません。あるときそれがクラッシュし、私は次のレポートを受け取りました:
[UIViewAnimationState release]:message sent to deallocated instance
これがどこで使われているのかわかりません。コードでアニメーションを使用していません。クラッシュの理由は何でしょうか?
これは私がそれがクラッシュしていると思うコードです
-(void)showMessageSendingIndicator
{
NSAutoreleasePool *pool=[[NSAutoreleasePool alloc]init];
self.av1=[[UIAlertView alloc] initWithTitle:@"Sending Message, please wait..." message:@"" delegate:self cancelButtonTitle:nil otherButtonTitles:nil];
UIActivityIndicatorView *ActInd=[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
[ActInd startAnimating];
[ActInd setFrame:CGRectMake(125, 60, 37, 37)];
[self.av1 addSubview:ActInd];
[self.av1 show];
[pool release];
return;
}