Domanda

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.

È stato utile?

Soluzione

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

Should be just:

- (void)dealloc
{
    self.slider = nil;
    self.tabBar = nil;
}
Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top