block传值
豫风
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
iOS不使用__block修改Block中的局部变量<指针篇>
Laziness is like a lock, which bolts you out of the storehouse of information and makes you an intellectual starveling. –Bernard Shaw 懒惰就象一把枷锁,锁住了知识的仓库,使你的智力便得匮乏。–萧伯纳 示例1: int a = 10; NSLog(@原创 2017-05-14 10:43:13 · 3228 阅读 · 0 评论 -
iOS以内聚的方式添加控件
出发点 每次添加控件都需要addSubview: 其次控件的属性设置、方法经常跨函数,无法快速查找 对比 常规设置 self.titleLabel = [[UILabel alloc]init]; self.titleLabel.translatesAutoresizingMaskIntoConstraints = NO; self.titleLabel.tex原创 2017-07-22 19:03:52 · 353 阅读 · 0 评论
分享