您的位置:首页 > 移动开发 > Objective-C

'URLWithString' is unavailable: use object construction 'NSURL(string:)

2016-05-16 22:19 513 查看
1.出现错误 'URLWithString' is unavailable: use object construction 'NSURL(string:)'

使用构造函数,而不是类方法创建url



NSURL.URLWithString("xxx")改成NSURL(string:"xxx")
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: