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

1.出现错误 'URLWithString' is unavailable: use object construction 'NSURL(string:)'

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

 

NSURL.URLWithString("xxx")改成NSURL(string:"xxx")

posted @ 2016-05-16 22:19  妖妖yaoyao  阅读(115)  评论(0编辑  收藏  举报