我从公司的文档中发现了这个代码段:
__weak __typeof(self)weakSelf = self; dispatch_async(dispatch_get_main_queue(), ^{ __strong __typeof(weakSelf)strongSelf = weakSelf; // Do stuff });
它会被保留吗?
objective-c objective-c-blocks
objective-c ×1
objective-c-blocks ×1