What is the difference between copies & retain in iOS operating system?
Answer / Satyendra Singh
In Objective-C, 'retain' increases the reference count of an object by 1 (meaning that the object is not deallocated as long as the reference count is greater than zero). On the other hand, 'copy' creates a new instance of the object and transfers ownership to the caller. Retain just retains the existing object.
| Is This Answer Correct ? | 0 Yes | 0 No |
Please explain what is difference strong and weak reference?
Will iphone 6 get ios 13?
Difference between coredata & sqlite?
How to parse xml?
How to install an iphone application for testing?
How can a user respond or react to the state transitions on the app?
Explain How to access document directory
What performance issues can you face when using coredata?
What compilers apple using ?
What is a struct?
Explain the correct way to manage Outlets memory in iOS.
How do I get ios 13?