views:

18

answers:

0

Hi guys,

First some background: I'm using a UIScrollView to make an image visible and zoomable and everything works fine initially, I can view and zoom the image just fine. I'm using a UINavigationController to manage all of my various custom view controllers. After the image is displayed, and the back button is clicked, this view controller is popped off the stack, and the previous one appears as expected. At this point, the problem arises. This view controller allows for some image manipulation and saves over the old image, but when I try to redisplay the image in the UIScrollView, it displays the old image and not the newer one, even if it's stored correctly on disc.

I can't figure out how to get it to reload the image. When back is pressed, I release the UIScrollView and the UIImageView it uses and set both to nil. It's somehow still cached I guess. Do I need to release and create a new instance of the view controller? Or is there some other way to force it to reload the image?

Please let me know if this doesn't make sense and I can try to elaborate, I'm new to iOS programming. Thanks in advance for any help.