码迷,mamicode.com
首页 >  
搜索关键字:Swift    ( 7059个结果
Swift - 反射(Reflection)的介绍与使用样例(附KVC介绍)
1,反射(Reflection) 对于C#、Java开发人员来说,肯定都对反射这个概念相当熟悉。所谓反射就是可以动态获取类型、成员信息,同时在运行时(而非编译时)可以动态调用任意方法、属性等行为的特性。 以Java上的两个知名框架(hibernate和spring)为例。hibernate的属性映射 ...
分类:编程语言   时间:2018-05-29 17:15:45    阅读次数:249
Difference between == and ===
In swift 3 and above (or !==) Checks if the values are identical (both point to the same memory address). Comparing reference types. Like == in Obj-C ...
分类:其他好文   时间:2018-05-29 12:00:14    阅读次数:150
Swift - 关键字(typealias、associatedtype)
Typealias Typealias typealias 是用来为已经存在的类型重新定义名字的,通过命名,可以使代码变得更加清晰。使用的语法也很简单,使用typealias 关键字像使用普通的赋值语句一样,可以将某个已经存在的类型赋值为新的名字。比如在计算二维平面上的距离和位置的时候,我们一般使用 ...
分类:编程语言   时间:2018-05-29 00:28:27    阅读次数:319
swift 类型备份
Swift语法3.03(类型Types) https://www.jianshu.com/p/839f9bc4b9a3 https://developer.apple.com/library/content/documentation/Swift/Conceptual/Swift_Programmi ...
分类:编程语言   时间:2018-05-29 00:12:16    阅读次数:179
《HelloGitHub》第 26 期
公告 五月初  "hellogithub.com" 网站做了优化和试错。因为我个人能力原因,导致这段时间网站出现了间断性不能访问,现在问题已经修复。多谢大家的支持、理解和反馈。 网站新增了“星图”的功能 ,还在测试阶段欢迎反馈问题。 总而言之,今年已过半 HelloGitHub 还在路上,希望 ...
分类:其他好文   时间:2018-05-28 10:09:37    阅读次数:284
Swift之关键字使用(I)
static和class的使用 static 使用 在非class的类型(包括enum和struct)中,一般使用static来描述类型作用域。在这个类型中,我们可以在类型范围中声明并使用存储属性,计算属性和方法。 1 //other 2 struct Point { 3 let x: Double ...
分类:编程语言   时间:2018-05-27 12:02:34    阅读次数:189
eeee
Math Behind Rx https://github.com/ReactiveX/RxSwift/blob/master/Documentation/MathBehindRx.md Getting Started https://github.com/ReactiveX/RxSwift/blo ...
分类:其他好文   时间:2018-05-26 11:45:06    阅读次数:294
swift dynamic关键字
dynamic Apply this modifier to any member of a class that can be represented by Objective-C. When you mark a member declaration with the dynamic modif ...
分类:编程语言   时间:2018-05-24 20:42:49    阅读次数:219
map 解析
Observable.of(1, 2, 3) .map { $0 * $0 } .subscribe(onNext: { print($0) }) .disposed(by: disposeBag) Map.swift extension ObservableType public func map ...
分类:其他好文   时间:2018-05-24 18:10:46    阅读次数:199
8 Mistakes to Avoid while Using RxSwift. Part 1
Part 1: not disposing a subscription Judging by the number of talks, articles and discussions related to reactive programming in Swift, it looks like ...
分类:编程语言   时间:2018-05-24 18:08:21    阅读次数:182
7059条   上一页 1 ... 47 48 49 50 51 ... 706 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!