ios - PINRemoteImage delete cache -


i'm using pinremoteimage in ios app setting image on uiimageview. have same link image, in meantime image can change (i can upload different image), whenever call pin_setimagefromurl on uiimageview sets old image (not if delete app , reinstall it). found out calling [[[pinremoteimagemanager sharedimagemanager] defaultimagecache] removeallobjects] delete image cache when close , reopen app, known how force app update cache after calling upper method?

i discovered method clear cache:

[[[pinremoteimagemanager sharedimagemanager] cache] removeobjectforkey:     [[pinremoteimagemanager sharedimagemanager]cachekeyforurl:your_url processorkey:nil]]; 

so, in - (void)viewwillappear:(bool)animated can set again imageview your_url.

that did trick @ side ;)


Comments

Popular posts from this blog

How to show in django cms breadcrumbs full path? -

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -