سؤال

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.

هل كانت مفيدة؟

المحلول

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

Should be just:

- (void)dealloc
{
    self.slider = nil;
    self.tabBar = nil;
}
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top