摘要:
```Swift//// ViewController7.swift// swiftT//// Created by wjwdive on 2020/5/20.// Copyright © 2020 wjwdive. All rights reserved.//import UIKitclass ViewController7: UIViewController { override... 阅读全文
摘要:
```swift // // ViewController5.swift // swiftT // // Created by wjwdive on 2020/5/19. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit class ViewController5: UIViewController { overri 阅读全文
摘要:
```swift//// ViewController3.swift// swiftT//// Created by wjwdive// Copyright © 2020 wjwdive. All rights reserved.//import UIKitstruct Person { var name: String var age: Int}//准守 Hashable ... 阅读全文
摘要:
```swift // // ViewController4.swift // swiftT // // Created by wjwdive on 2020/5/19. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit class ViewController4: UIViewController { overri 阅读全文
摘要:
```swift//// ViewController.swift// swiftT//// Created by wjwdive on 2019/1/9.// Copyright © 2019年 wjwdive. All rights reserved.//import UIKitstruct Size { var width = 0.0, height = 0.0 ... 阅读全文
摘要:
```swift // // ViewController1.swift // swiftT // // Created by wjwdive on 2020/5/14. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit protocol Animal { var name: String {get} } struc 阅读全文
摘要:
```swift // // ViewController2.swift // swiftT // // Created by wjwdive on 2020/5/15. // Copyright @ wjwdive All rights reserved. // import UIKit class ViewController2: UIViewController { override fun 阅读全文
摘要:
我们通过代码来说明: 看看打印结果 倘若我们把不可变字典的属性关键字声明为strong: 所以综上,由于NSDictionry有对应的可变类型,NSMuableDictionry,并且NSMutableDictonry可以赋值给NSDictionry ,代码里有先拿可变字典给不可变字典赋值,然后修改 阅读全文