私はiOSアプリケーションでInstagramに画像を投稿する実装を試みています。私はこのポストでコードを使用しました。'String'型の値を 'URL'の引数型に変換できません
UIImageJPEGRepresentation(imageInstagram, 1.0)!.writeToFile(jpgPath, atomically: true)
:スウィフト3用
UIImageJPEGRepresentation(imageInstagram, 1.0)!.write(jpgPath, options: true)
が、その後、私はエラーを取得する:
Cannot convert value of type 'String' to expected argument type 'URL'
ドウ私はラインを変更する必要が
Post UIImage to Instagram using Swift similar to SLComposeViewController
誰でもこれを解決する方法を知っていますか?
ありがとうございました。
を見てみましょう。 – Wolverine
jpgPathとは –