Object alloc/#Net
I don't see any CFNumber objects in the code you posted - but if you put your mouse over "CFNumber" and click the gray arrow after the name, you'll see a list of your CFNumber objects. If you click some of the objects, you'll see a list of the operations for that memory location. At the bottom of that list, you'll see where you're allocaiton that object and never releasing it.
I had a problem with these, as after running for some time , the histogram of #Net/#Overall turns to red and My application closes(crashes) later.
#Overall is getting increased every time.
#Net flickers with different screens on active.
No Memory leaks were found. Following the structure what do I follow for displaying the updates..
In my app I have to retrieve the xml content containing both text and image links from the remote server using http connection, and I have to update the content for every 25-30 secs.
For this I have followed the following way..
1) Retrieved the xml content asynchronously using NSURLConnection and parsed using NSXMLParser.
2) After Parsing the content , I am adding the view controller for the respective xml content to the window of the app as subview and the view controller again contaings differnt subview such as UILabel ,UIView and UIIMageview to display images. Images are displayed by retrieving from another http connection after parsing the xml content.and caching the content in NSMutableDictionary.
3) Also in viewdidload I am placing the NSTimer for 30 sec to call the http connection for the xml related to the screen.
4) After retrieving the xml for the screen which was already active on the window, In enddocument callback of NSXmlParser, I am calling the ViewDidLoad of the viewcontroller, where I remove all the subviews from the super views of the ViewController to clear the screen and again display the content by adding subview.
5)My application works fine on the simulator, though I have to test it yet on the actual device yet.