Restart the Swift services: # service swift-account-auditor restart # service swift-account restart # service swift-account-reaper restart # service s ...
分类:
编程语言 时间:
2020-06-16 13:18:49
阅读次数:
62
写过swift的同学应该都知道defer这个关键字,可以让我们在函数return之前执行指定的代码,这对于有多个提前return而忘记释放资源的函数来说,简直不要太方便了,然而对于swift的前辈Objective-C或C++来说,苹果并没有帮我们定义,因此本文总结一下如何在C++和Objectiv... ...
分类:
编程语言 时间:
2020-06-14 18:54:28
阅读次数:
63
// // ViewController19.swift // swiftT // // Created by wjwdive on 2020/6/8. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit class V ...
分类:
编程语言 时间:
2020-06-10 19:15:45
阅读次数:
60
// swift 里的 权限控制 // 模块和源文件 //模块: 模块指的是独立的代码分发单元,框架或应用程序会作为一个独立的模块来构建和发布。在swift中,一个模块可以使用import关键字导入另一个模块 //源文件: 源文件就是swift 里的源代码文件,它通常属于一个模块,即一个应用程序或者 ...
分类:
编程语言 时间:
2020-06-10 19:06:26
阅读次数:
65
是因为iOS13上的不支持适配 let activity = UIActivityViewController(activityItems: [URL(fileURLWithPath: path)], applicationActivities: nil) activity.excludedActi ...
分类:
移动开发 时间:
2020-06-09 12:42:15
阅读次数:
113
// // ViewController17.swift // swiftT // // Created by wjwdive on 2020/6/3. // Copyright © 2020 wjwdive. All rights reserved. // import UIKit class V ...
分类:
编程语言 时间:
2020-06-03 17:31:27
阅读次数:
76
项目中引入swift三方库需要使用动态库,然而oc默认使用静态库,所以在将项目三方库全变为动态库后会遇到下面几个问题 1.YY系列三方库若有手动导入的,有cocoapods导入的则在编译时会包文件符号重复的错误 解决方法:要么全部手动集成,要么全部cocoapods导入 2.腾讯IMSDK中包含模拟 ...
分类:
其他好文 时间:
2020-05-31 11:13:17
阅读次数:
87
```swift // // ViewController10.swift // swiftT // // Created by wjwdive on 2020/5/25. // Copyright © 2020 wjwdive. All rights reserved. // import UIK... ...
分类:
编程语言 时间:
2020-05-25 17:49:38
阅读次数:
86
```swift // // ViewController9.swift // swiftT // // Created by wjwdive on 2020/5/25. // Copyright © 2020 wjwdive. All rights reserved. // import UIKi... ...
分类:
编程语言 时间:
2020-05-25 17:46:51
阅读次数:
65
```Swift//// ViewController7.swift// swiftT//// Created by wjwdive on 2020/5/20.// Copyright © 2020 wjwdive. All rights reserved.//import UIKitclass V... ...
分类:
编程语言 时间:
2020-05-25 17:43:43
阅读次数:
56