随笔分类 - swift
just record the records
摘要:1、背景: Xcode Version 12.2 beta (12B5018i) 新建好的Xcode swift项目,运行的好好地,由于我要手动导入SnapKit.导入失败,工程无法构建了。折腾了半天工程配置那个地方已经失败了,我又找不到问题出在哪里。 把SnapKit去掉之后,又重新配置,buil
阅读全文
摘要:// // ViewController17.swift // swiftT // // Created by wjwdive on 2020/6/3. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit class V
阅读全文
摘要:// // ViewController16.swift // swiftT // // Created by wjwdive on 2020/6/1. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit class V
阅读全文
摘要:// // ViewController15.swift // swiftT // // Created by on 2020/6/1. // Copyright © 2020 All rights reserved. // import UIKit class ViewController15:
阅读全文
摘要:```swift // // ViewController10.swift // swiftT // // Created by wjwdive on 2020/5/25. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit class ViewController10: UIViewController { over
阅读全文
摘要:```swift // // ViewController9.swift // swiftT // // Created by wjwdive on 2020/5/25. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit class ViewController9: UIViewController { overri
阅读全文
摘要:```swift // // ViewController2.swift // swiftT // // Created by wjwdive on 2020/5/15. // Copyright @ wjwdive All rights reserved. // import UIKit class ViewController2: UIViewController { override fun
阅读全文
摘要:模式和模式匹配 模式: 代表单个或者复合值得结构,也就是说模式不是一个特定的值,它是一种抽象的结构, 【一句话,不是特指,是泛指】 。这样就可以用模式来匹配各种各样的值。 例如:(x,y)可以匹配元祖(1.2),以及任何包含两个元素的元组。 除了利用模式匹配一个值以外,你可以从复合值中提取出部分或全
阅读全文
摘要://: Playground - noun: a place where people can play import UIKit var str = "Hello, playground" let individualScores = [75, 43, 103, 87, 12]; var team
阅读全文
摘要://: Playground - noun: a place where people can play import UIKit var str = "Hello, playground" //var 声明变量 很像JavaScript var myVariable = 42; myVariabl
阅读全文