是否应显式释放具有@property非原子和保留的变量.
@interface MyScreenViewController : UIViewController <UIWebViewDelegate> {
UIWebView* greetingView;
}
@property(nonatomic, retain) IBOutlet UIWebView* greetingView;
- (void)dealloc {
[greetingView release];
}
Run Code Online (Sandbox Code Playgroud)
在delloc方法中发布是否必需???
ios ×1