Comment on NSNotificationCenter with blocks considered harmfulComments−adamcavalli12ytypeof(self) __weak weakSelf = self;self.block = ^{ typeof(self) strongSelf = weakSelf; if (strongSelf) { // ... } };
Comments
typeof(self) __weak weakSelf = self;
self.block = ^{ typeof(self) strongSelf = weakSelf; if (strongSelf) { // ... } };