문제

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