我有这个代码:
imageNumber++;
UIImage *image = [[UIImage alloc]init];
image = [UIImage imageNamed:[NSString stringWithFormat:@"l%d_s%d.png", currentSet, imageNumber]];
[imageToColor setImage:image]; //<-- here it crash
[image release];
所以,几分钟后我的应用程序因这条消息而崩溃
[UIImage isKindOfClass:]: message sent to deallocated instance
为什么??你能帮助我吗?