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

相关文章
相关标签/搜索