iOS中block的详解weakSelf、strongSelf-转自唐巧

1 咱们知道,在使用 block 的时候,为了不产生循环引用,一般须要使用 weakSelf 与 strongSelf,写下面这样的代码:html __weak typeof(self) weakSelf = self; [self doSomeBlockJob:^{ __strong typeof(weakSelf) strongSelf = weakSelf; if (stro
相关文章
相关标签/搜索