Reputation: 683
Memory keeps on increasing in my ARC enabled project and no leaks are being shown in Leaks. Need help on this to find out the issue. I have auto-refresh in a page where views are getting redrawn. I see many objects for CFString - immutable.
Also , see issue in this line.
static NSString *CellIdentifier = @"CustomCell";
NewsCellView *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
How can I make sure why the views are not getting deallocated and keeps on increasing. How to know who is holding the reference.
Any valuable tips can help. Also, am not setting proper answers in other posts. Need help to debug the issue. iOS Experts pls help.
Upvotes: 0
Views: 394
Reputation: 656
1) Check if you have any cyclic references in your cell. Any strong pointer pointing to parent object or super class.
2) Run the Xcode's "Analyze" tool. Long press the "Run" icon which will show the menu as shown in this image and select the "Analyze" option. It will analyze your code for any possible leaks. Remove the leaks one-by-one and then check if you still have increasing memory.
Upvotes: 1