我已经启用了NSZombie,并且在运行我的应用程序时,在控制台上收到以下消息:
*** -[UIViewAnimationState release]: message sent to deallocated instance 0xf96d7e0
这里是执行动画的方法。
-(void)loadAvatar:(STObject*)st
{
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init];
avatar.alpha = 0;
avatar.frame = avatarRectSmall;
avatar.image = [ImageCache getMemoryCachedImageAtUrl:st.avatar_url];
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:.50];
avatar.frame = avatarRectNormal;
[avatar setAlpha:1];
[UIView commitAnimations];
[pool release];
pool = nil;
}
我不总是遇到崩溃,只有有时候。我想知道是什么被释放了?