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 |
In which language ios is written?
Which language is best for ios development?
List the devices compatible with ios 11? : IOS Architect
How to animate view with constraint?
Can you pass same core data objects between different threads and modify?
What are the viewcontroller lifecycle in ios?
Describe @objc inference?
What is the short cut to open the “Code Snippet Library” in Xcode?
Push notification working in ios?
What are most ios apps written in?
What's fast enumeration?
Tell about block and GCD