Stop lazy-loading images?
        Posted  
        
            by Greg
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Greg
        
        
        
        Published on 2010-06-16T16:18:23Z
        Indexed on 
            2010/06/16
            16:32 UTC
        
        
        Read the original article
        Hit count: 236
        
iphone
|objective-c
Here's the issue – I followed along with the Apple lazy-load image sample code to handle my graphical tables. It works great. However, my lazy-load image tables are being stacked within a navigation controller so that you can move in and out of menus. While all this works, I'm getting a persistent crash when I move into a table then move immediately back out of it using the "back" button. This appears to be a result of the network connections loading content not being closed properly, or calling back to their released delegates. Now, I've tried working through this and carefully setting all delegates to nil and calling close on all open network connections before releasing a menu. However, I'm still getting the error. Also – short posting my entire application code into this post, I can't really post a specific code snippet that illustrates this situation.
I wonder if anyone has ideas for tasks that I may be missing? Do I need to do anything to close a network connection other than closing it and setting it to nil? Also, I'm new to debugging tools – can anyone suggest a good tool to use to watch network connections and see what's causing them to fail?
Thanks!
© Stack Overflow or respective owner