Question

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.

Was it helpful?

Solution

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

Should be just:

- (void)dealloc
{
    self.slider = nil;
    self.tabBar = nil;
}
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top