Pregunta

I get an error (ARC forbids explicit message send of 'dealloc'), if I write:

- (void)dealloc {
    self.slider = nil;
    self.tabBar = nil;
    [super dealloc];
 }

Hope anyone can help me. Thanks a lot for answering.

¿Fue útil?

Solución

Remove [super dealloc], it's automatic under ARC.

Should be just:

- (void)dealloc
{
    self.slider = nil;
    self.tabBar = nil;
}
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top