小编nan*_*nda的帖子

IOS:使用@property释放变量(非原子,保留)

是否应显式释放具有@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

4
推荐指数
1
解决办法
3861
查看次数

标签 统计

ios ×1