Explain retain counts



 Explain retain counts..

Answer / maanya

.
Retain counts are the way in which memory is managed in Objective-C. When you create an object, it has a retain count of 1. When you send an object a retain message, its retain count is incremented by 1. When you send an object a release message, its retain count is decremented by 1. When you send an object a autorelease message, its retain count is decremented by 1 at some stage in the future. If an objectʼs retain count is reduced to 0, it is deallocated.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

When is an app said to be in active state?

0 Answers  


How can we prevent ios 8 app’s streaming video media from being captured by quicktime player on yosemite during screen recording?

0 Answers  


What is queue in ios?

0 Answers  


What is id in ios?

0 Answers  


Explain ios multitasking?

0 Answers  






What are the different delete rules that a relationship can have? Which one takes ownership?

0 Answers  


What is race condition in ios?

0 Answers  


Arc is compile time or run time feature?

0 Answers  


Describe what “app thinning” means ?

0 Answers  


What is the difference between delegates and notifications in iOS operating system?

0 Answers   B-Ways TecnoSoft,


What is ios architecture?

0 Answers  


What are the ways to store data localy on iphone device?

0 Answers  


Categories