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

Explain iglistkit?

1 Answers  


Is uikit thread safe?

1 Answers  


Do you know what is iphone reference library?

1 Answers  


Explain what is iphone architecture?

1 Answers  


What are the memory management rules?

1 Answers  


Explain mutable and immutable types in objective c programming language?

1 Answers  


Explain How to access document directory

1 Answers  


How to change the content of your app in order to change the views displayed in the corresponding window?

1 Answers  


what are the two different smart groups in Xcode?

1 Answers  


Why uicontrol is provided if we can create custom uiview?

1 Answers  


What is the mean of not running state in ios?

1 Answers  


Would I be able to keep in touch with some c++ work in the equivalent .m record? Will it compile? Assuming no, what changes would it be a good idea for me to do to compile it?

1 Answers  


Categories