【发布时间】:2016-11-10 00:20:30
【问题描述】:
这是我们在 Swift 2 中的代码。什么是 Swift 3 版本?我没有看到 setShared 的替代品。
let sharedCache: NSURLCache = NSURLCache(memoryCapacity: 0, diskCapacity: 0, diskPath: nil)
NSURLCache.setSharedURLCache(sharedCache)
【问题讨论】:
标签: swift3 nsurlcache