I have an image (png) in the app document directory, which is a screenshot of a UIView
. The image will be saved when user clicked a UIButton
. I use stringByEvaluatingJavaScriptFromString
to inject the image into a div in a UIWebView
. The problem is when the app loads first, the correct image it added, but in run time the image is not changed, it only shows the image which was in the directory when loading. I tried cleaning the cache and etc but no use.
note - the webview loads local html files - I use arc
How can I add the correct image from the documentry directory to the webview. ?
UPDATE it works fine on IOS 5.. issue is only on IOS 6..