dealloc不調用的狀況

一、沒有中止定時器atom

- (void)dealloc {
    [_timer invalidate];
    _timer = nil;
    
}.net

二、VC中有代理Delegate,須要設置delegate的時候,設置爲weak代理

@property (nonatomic,weak) id<ZoeEatDelegate>delegate;get

三、VC中有Block方法class

__weak weakSelf = self;date

[_marketView poppingBuyOrSellView:^(QHFinanceBuyOrSellModel *model) {
            __strong strongSelf = weakSelf;
            strongSelf.selIndex = 1;
            strongSelf.selectModel = model;
            [strongSelf popToBuyOrSellView:model.eType == 2?YES:NO];
        }];select

相關文章
相關標籤/搜索