05 2020 档案

摘要:```Swift // // ViewController8.swift // swiftT // // Created by wjwdive on 2020/5/22. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit class ViewController8: UIViewController { overri 阅读全文
posted @ 2020-05-25 17:11 wjwdive 阅读(473) 评论(0) 推荐(0) 编辑
摘要:```swift // // ViewController10.swift // swiftT // // Created by wjwdive on 2020/5/25. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit class ViewController10: UIViewController { over 阅读全文
posted @ 2020-05-25 17:09 wjwdive 阅读(581) 评论(0) 推荐(0) 编辑
摘要:```swift // // ViewController9.swift // swiftT // // Created by wjwdive on 2020/5/25. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit class ViewController9: UIViewController { overri 阅读全文
posted @ 2020-05-25 17:08 wjwdive 阅读(334) 评论(0) 推荐(0) 编辑
摘要:```Swift//// ViewController7.swift// swiftT//// Created by wjwdive on 2020/5/20.// Copyright © 2020 wjwdive. All rights reserved.//import UIKitclass ViewController7: UIViewController { override... 阅读全文
posted @ 2020-05-25 17:05 wjwdive 阅读(239) 评论(0) 推荐(0) 编辑
摘要:```swift // // ViewController5.swift // swiftT // // Created by wjwdive on 2020/5/19. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit class ViewController5: UIViewController { overri 阅读全文
posted @ 2020-05-25 17:02 wjwdive 阅读(326) 评论(0) 推荐(0) 编辑
摘要:```swift//// ViewController3.swift// swiftT//// Created by wjwdive// Copyright © 2020 wjwdive. All rights reserved.//import UIKitstruct Person { var name: String var age: Int}//准守 Hashable ... 阅读全文
posted @ 2020-05-25 16:53 wjwdive 阅读(477) 评论(0) 推荐(0) 编辑
摘要:```swift // // ViewController4.swift // swiftT // // Created by wjwdive on 2020/5/19. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit class ViewController4: UIViewController { overri 阅读全文
posted @ 2020-05-25 16:50 wjwdive 阅读(163) 评论(0) 推荐(0) 编辑
摘要:```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 ... 阅读全文
posted @ 2020-05-25 09:01 wjwdive 阅读(194) 评论(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 阅读全文
posted @ 2020-05-22 17:45 wjwdive 阅读(289) 评论(0) 推荐(0) 编辑
摘要:```swift // // ViewController2.swift // swiftT // // Created by wjwdive on 2020/5/15. // Copyright @ wjwdive All rights reserved. // import UIKit class ViewController2: UIViewController { override fun 阅读全文
posted @ 2020-05-22 17:42 wjwdive 阅读(2428) 评论(0) 推荐(0) 编辑
摘要:我们通过代码来说明: 看看打印结果 倘若我们把不可变字典的属性关键字声明为strong: 所以综上,由于NSDictionry有对应的可变类型,NSMuableDictionry,并且NSMutableDictonry可以赋值给NSDictionry ,代码里有先拿可变字典给不可变字典赋值,然后修改 阅读全文
posted @ 2020-05-07 16:25 wjwdive 阅读(477) 评论(0) 推荐(0) 编辑