相关疑难解决方法(0)

Swift 3中的字符串(contentsOfURL :)

此代码来自:

if let resultOfURL = try? String(contentsOfURL:myURL!, encoding: String.Encoding.utf8) {
Run Code Online (Sandbox Code Playgroud)

现在抛出这个错误:

'init' has been renamed to 'init(describing:)'
Run Code Online (Sandbox Code Playgroud)

有帮助吗?非常感谢!!

string swift swift3

5
推荐指数
1
解决办法
4891
查看次数

标签 统计

string ×1

swift ×1

swift3 ×1