![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 3122 阅读 · 0 评论 -
iOS以内聚的方式添加控件
出发点 每次添加控件都需要addSubview: 其次控件的属性设置、方法经常跨函数,无法快速查找 对比 常规设置 self.titleLabel = [[UILabel alloc]init]; self.titleLabel.translatesAutoresizingMaskIntoConstraints = NO; self.titleLabel.tex原创 2017-07-22 19:03:52 · 297 阅读 · 0 评论