应用程序很少崩溃。有一次它崩溃了,我得到了以下报告:
[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;
}