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

Is realm db free?

0 Answers  


What is meaning of 'readonly' keyword?

0 Answers  


Garbage collector in iphone?

0 Answers  


Explain me how to parse xml?

0 Answers  


Is the object retained if I call performSelector:withObject:afterDelay:?

1 Answers  






. Name the framework that is used to construct application’s user interface for iOS. 

1 Answers  


 An app is loaded into memory but is not executing any code. In which state will be in?

1 Answers  


Explain the correct way to manage Outlets memory in iOS.

0 Answers   UGC Corporation,


How to use reusable cell in uitableview?

0 Answers  


What is the benefit of setting reuseidentifier to a non-nil value?

0 Answers  


What is mvc design pattern in ios?

0 Answers  


Explain how to shut off message alerts in ios?

0 Answers  


Categories