LoginSignup
0
0

More than 5 years have passed since last update.

PINRemoteImageでキャッシュされているイメージを消す

Posted at

こんな感じに画像を読み込んで。。

let u=imageurl
view.imageview.pin_setImage(from: URL(string: u)!, processorKey: "rounded") { (result, unsafePointer) -> UIImage? in
.
.

URL指定でキャッシュを消す時はprocessorKey指定と未指定でなぜか二回キャッシュクリア。。

let u=imageurl
PINRemoteImageManager.shared().cache.removeObject(forKey: u)
let u2=PINRemoteImageManager.shared().cacheKey(for: URL(string:u)!, processorKey: "rounded")
PINRemoteImageManager.shared().cache.removeObject(forKey: u2)

どこにも書いてなかったので、面倒だけどソース見た。
もっと良い方法がありそうだけど。。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0