ホーム

Swift3 で NSURLRequest しようとしたら Ambiguous use of 'init(URL:)' NSURLRequest

Ambiguous use of 'init(URL:)' NSURLRequest

let req = NSURLRequest(URL: URL as! URL)

// Ambiguous use of 'init(URL:)' NSURLRequest

解決

NSを外したら解決しました

//let req = NSURLRequest(URL: URL as! URL)
let req = URLRequest(url: URL! as URL)
Pocket
LinkedIn にシェア

-ホーム

Copyright© off.tokyo , 2021 All Rights Reserved Powered by AFFINGER5.