【发布时间】:2014-05-02 06:44:01
【问题描述】:
如果我写的话,我会收到一个错误(ARC 禁止发送“dealloc”的显式消息):
- (void)dealloc {
self.slider = nil;
self.tabBar = nil;
[super dealloc];
}
希望任何人都可以帮助我。 非常感谢您的回答。
【问题讨论】:
标签: objective-c automatic-ref-counting dealloc
如果我写的话,我会收到一个错误(ARC 禁止发送“dealloc”的显式消息):
- (void)dealloc {
self.slider = nil;
self.tabBar = nil;
[super dealloc];
}
希望任何人都可以帮助我。 非常感谢您的回答。
【问题讨论】:
标签: objective-c automatic-ref-counting dealloc
去掉[super dealloc],在ARC下是自动的。
应该只是:
- (void)dealloc
{
self.slider = nil;
self.tabBar = nil;
}
【讨论】:
dealloc 问题无关,可能是另一个问题。这些问题的答案可能只是您需要将 OpenGL 和 QuartzCore 框架添加到您的项目(或目标)中。可能相关:stackoverflow.com/questions/6251111/classlayerclass-wont-work