【发布时间】:2011-10-07 10:22:52
【问题描述】:
是否应该明确释放带有@property nonatomic 和 retain 的变量。
@interface MyScreenViewController : UIViewController <UIWebViewDelegate> {
UIWebView* greetingView;
}
@property(nonatomic, retain) IBOutlet UIWebView* greetingView;
- (void)dealloc {
[greetingView release];
}
是否需要在 delloc 方法中发布 ???
【问题讨论】:
标签: ios