IOS development and ios development tutorial
Tools used: Product-> Analyze
This tool is easy to use and can perform memory analysis during code compilation to identify potential memory leakage risks in the code. It does not need to be run.
After the analysis, information similar to Warring and Error will be obtained in Issue navigator:
Memory leakage points are pointed out.
Where:
Dead store
Value stored to 'xxxx' is never read
Variable defined but not used.
Memory (Core Foundation/Objective-C)
Potential leak of an object stored into 'xxxx'
Indicates that the object has potential leakage.
Other types of prompts are not listed here.
Solution:
Click the prompt information to guide you to the corresponding code location:
Click the prompt message after the code to display the interaction details:
Modify the relevant code as prompted.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.