adspace


Can you just explain about memory management in iOS?

Answer Posted / Radhe Shyam

Memory management in iOS is handled by the automatic reference counting (ARC) system. ARC manages the lifecycle of objects, automatically releasing them when they are no longer needed to free up memory.
1. Retain Count: Each object has a retain count, which keeps track of how many other objects refer to it.
2. Autorelease Pool: When an autorelease object is created, its retain count is incremented, and it's added to the current autorelease pool.
3. Release: When an object is sent the release message, its retain count is decremented by one.
4. Retain: If another object takes a reference to the original object, its retain count is incremented.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the latest version of google browser?

1229


what is gr-edge edit?

2231


What is the most powerful processor?

1088


What is the latest android operating system?

1094