, , . CATiledLayer.content nil . , UIView , dealloc.
UIViewController dealloc, CATiledLayer , , .
- (void)dealloc
{
MyTiledView *tiledView = self.tiledView;
if(tiledView) {
dispatch_background(^{
tiledView.layer.contents = nil;
dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(0.01 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{
tiledView.layer.delegate = nil;
});
});
}
}
, / Apple (StoreKit, CATiledLayer, UIGestureRecognizer) , @property (weak) id delegate, weak. , if != nil, . __strong Type *delegate = self.delegate, , , , nil, , , ( , ARC).
CATiledLayer , , . , , . - , .
content = nil dispatch_wait , . , , dealloc .
, , .