我有一个愚蠢的问题,在我的代码中我这样做:
在.h
@property (nonatomic, retain) UIImage *currentImage;
英寸
@syntesyze currentImage;
然后在我的课堂上我使用“ self.currentImage
”......
在 dealloc 我尝试做:
[self.currentImage release] or self.currentImage = nil
但是我的应用程序崩溃了,问题是“消息发送到释放的实例”,为什么?我在.h中有一个保留,有什么问题?