张赛东
  • 首页
  • 归档
  • 分类
  • 标签
  • 关于
  •   
  •   

制作多平台的framework

制作多平台的framework========================看图秒懂系列,Base SDK务必要设置成No SDK,选择other选项,然后什么都不填。

2021-04-23
移动开发
iOS framework

去除 GLKit API 弃用警告

去除 GLKit API 弃用警告======================== 1'GLKViewController' was deprecated in iOS 12.0: OpenGLES API deprecated. (Define GLES_SILENCE_DEPRECATION to silence these warnings) GLKit 相关的 API 从 iOS12 之后

2021-04-21
移动开发
iOS framework

使用R.swift检查各种string文件的问题

使用R.swift检查各种string文件的问题======================== [R.swift] Skipping 2 strings in ‘Localizable’ (en) because symbol ‘bottle’ would be generated for all of these keys: bottle, bottle这个错误主要是因为你在.strings文

2021-04-16
移动开发
iOS framework

iOS日志框架CocoaLumberjack

iOS日志框架CocoaLumberjack========================我使用了如下代码进行配置,只需在AppDelegate或SceneDelegate调用configDDLog即可(在其他某些文件配置也是可以的) 123456789101112131415161718192021222324252627282930313233343536373839404142434445

2021-04-10
移动开发
iOS framework

查看cocoapods中各个库的版本

查看cocoapods中各个库的版本======================== 记录一下 1cat Podfile.lock 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071

2021-04-09
移动开发
iOS framework cocoapods

Zip使用

Zip使用======================== 感觉官方写得挺明白的 123456789do { let filePath = Bundle.main.url(forResource: "file", withExtension: "zip")! let unzipDirectory = try Zip.quickUnzipFile(filePath) // Unzip

2021-04-08
移动开发
iOS framework zip

iOS mlmodelc内部文件格式规范

iOS mlmodelc内部文件格式规范========================尽量本地编译Core ML mlmodel,则得到的mlmodelc可以直接使用 通过网络加载的Core ML mlmodel所编译而出的mlmodelc虽说内容一致,但格式不方便直接使用,而且……最重要的是,网络加载的mlmodel至少还要再编译一次,相当于在App内占用了两个模型的体量。而且有可能需要重复编

2021-04-08
移动开发
iOS file 机器学习

iOS延时

iOS延时======================== 今天我使用了这样一种延时,目的是等待文件下载完,返回与文件相关的数据,我试了各种多线程,后面发现这种延时有阻塞的味道,能有效地防止函数提前返回数据 12345678while true { if let compiledModelURL = try? MLModel.compileModel(at: url) { } else

2021-04-06
移动开发
iOS Swift time

iOS调试摘录

iOS调试摘录======================== po vo do 等调试命令可以了解下

2021-04-05
移动开发
iOS 软件测试

iOS_Swift文件夹和文件操作

iOS_Swift文件夹和文件操作======================== 首先获取app文件夹:(以下例子都在doucment文件夹下操作) 1234let manager = FileManager.defaultlet urls: [URL] = manager.urls(for: .documentDirectory, in: .userDomainMask)// .library

2021-04-04
移动开发
iOS Swift file

Swift字符串截取摘录

Swift字符串截取摘录========================

2021-04-04
移动开发
iOS Swift

Swift 解决URL或参数中含有中文(Swift URL编码)

Swift 解决URL或参数中含有中文(Swift URL编码)======================== 12let encodeURLStr = urlString.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)let url = URL.init(string: encodeURLStr) 123456

2021-04-04
移动开发
iOS Swift network

从网络下载文件到App

从网络下载文件到App======================== 123456789101112131415161718192021222324252627282930313233343536373839404142434445func downloadModels(_ path: [String], modelUrl: String) { DispatchQueue.global()

2021-04-04
移动开发
iOS network 三维模型 file

JSON解析摘录

JSON解析摘录========================

2021-04-03
移动开发
iOS framework JSON

Kingfisher简单使用

Kingfisher简单使用======================== UIKit123456789101112131415161718let url = dataShare.queryFromManyTable(with: modelName, from: [dataShare.cuturalRelicsIntroduction,

2021-04-03
移动开发
iOS framework

Swift高阶函数

Swift高阶函数======================== mapmapmap对于原始集合里的每一个元素, 以一个变换后的元素替换之形成一个新的集合 1234let results = [1, 2, 3, 4, 5, 6, 7, 8, 9]let allResults = results.map{ $0.map{ $0 * 10 } }print(allResults) 输出结果 1[10

2021-04-03
移动开发
Swift

Swift Self摘录

Swift Self摘录========================

2021-04-01
移动开发
Swift

Swift Package摘录

Swift Package摘录========================

2021-04-01
移动开发
framework
12345

搜索

2019 - 张赛东

总访问量 次 总访客数 人