How to fix memory leaks in an ARC-enabled iPhone project?

I am developing an iPhone project in which I have included ARC, and when I start my project with tools, so many places it shows 100% leak for ex:

-[self.navigationController pushViewController:secondPage animated:YES]; //100% leak [self loadXML];//100% leak 

even if I make the secondPage object null after clicking and in viewDidUnload to resolve the leak problem. How can I solve these leaks? Any help is appreciated in advance. Thanks.

+4
source share
1 answer

The Leaks tool (in the Tools) will tell you exactly what was missed, where it was created, write a stack and (optionally) write down each link counting operation. Learning how to use it is highly recommended.

+2
source

Source: https://habr.com/ru/post/1384674/


All Articles