API Reference对__block变量修饰符有如下几处解释: //A powerful feature of blocks is that they can modify variables in the same lexical scope. You signal that a block Read More
posted @ 2017-03-04 23:56 Niki~ Views(3302) Comments(0) Diggs(0) Edit
swift与OC的主要区别就是语法区别,其他大抵相同. 区别1: swift中使用let定义常量,var定义变量.常量一经赋值,不可以进行修改,变量赋值后可更改. swift能够根据右边的代码,推倒出该变量的准确类型. 在实际开发中 使用常量多还是使用变量多? 使用常量,更加安全,不能够被修改,在需 Read More
posted @ 2017-03-04 16:59 Niki~ Views(3888) Comments(0) Diggs(0) Edit