摘要:
作用域:可见范围 阅读全文
posted @ 2019-07-22 15:02
zzfx
阅读(138)
评论(0)
推荐(0)
There is no type initializer in Swift----One answer is to use static, it is the same as class final.
摘要:
“Unlike stored instance properties, you must always give stored type properties a default value. This is because the type itself does not have an init 阅读全文
posted @ 2019-07-22 14:46
zzfx
阅读(190)
评论(0)
推荐(0)
摘要:
In Swift, however, type properties are written as part of the type’s definition, within the type’s outer curly braces, and each type property is expli 阅读全文
posted @ 2019-07-22 14:44
zzfx
阅读(375)
评论(0)
推荐(0)
摘要:
The foundation of Aspect Oriented Programming is the intercept pattern. We start with a crosscutting requirement - something that needs to occur in ma 阅读全文
posted @ 2019-07-22 14:19
zzfx
阅读(257)
评论(0)
推荐(0)
摘要:
线程创建数据库的连接后,所有通过这个连接操作数据库的上下文都会进入此线程的上下文; 通过其他线程修改当前线程的上下文为非法操作。 阅读全文
posted @ 2019-07-22 12:06
zzfx
阅读(363)
评论(0)
推荐(0)
摘要:
顶级抽象:protocol 具体类型:值类型、引用类型 类型操作:扩展 其他: 范型、函数式类型:function、monand 阅读全文
posted @ 2019-07-22 12:03
zzfx
阅读(260)
评论(0)
推荐(0)
摘要:
协议是对交互(通信)规则的抽象; 是事物行为的一个侧面; 阅读全文
posted @ 2019-07-22 11:58
zzfx
阅读(189)
评论(0)
推荐(0)
摘要:
swift是对oc的扩展 Swift是没有消息机制的Objective-C https://www.oschina.net/translate/inside-swift; swift保持了oc的类结构形式,对函数的派发机制做了调整。 一、class swift完全继承了oc class类的运行时结构 阅读全文
posted @ 2019-07-22 11:55
zzfx
阅读(626)
评论(0)
推荐(0)