- 博客(2)
- 资源 (2)
- 问答 (3)
- 收藏
- 关注
转载 iOS中block的详解weakSelf、strongSelf
1我们知道,在使用 block 的时候,为了避免产生循环引用,通常需要使用 weakSelf 与 strongSelf,写下面这样的代码:__weak typeof(self) weakSelf = self; [self doSomeBlockJob:^{ __strong typeof(weakSelf) strongSelf = weakSelf; if (strongSel...
2018-05-19 09:27:51 432
原创 iOS VFL自动布局的小秘密
self.redView = [[UIView alloc]init]; self.redView.backgroundColor = [UIColor redColor]; [self.view addSubview:self.redView]; self.blueView = [[UIView alloc]init]; self.blueView.bac...
2018-05-13 10:41:57 207
代码块的简单使用
2015-04-14
Xcode更新7.3之后出现
2016-03-22
xcode 6 infoPlist.strings添加实现
2015-04-15
TA创建的收藏夹 TA关注的收藏夹
TA关注的人