相关疑难解决方法(0)

我需要释放xib资源吗?

如果我有一个像UILabel链接到xib文件的东西,我是否需要在我的视图dealloc上发布它?我问的原因是因为我没有分配它,这让我觉得我不需要释放它?例如(在标题中):

IBOutlet UILabel *lblExample;
Run Code Online (Sandbox Code Playgroud)

在实施中:

....
[lblExample setText:@"whatever"];
....

-(void)dealloc{
    [lblExample release];//?????????
}
Run Code Online (Sandbox Code Playgroud)

iphone cocoa-touch objective-c

37
推荐指数
1
解决办法
9152
查看次数

标签 统计

cocoa-touch ×1

iphone ×1

objective-c ×1