What are the differences between copy and retain?
Answer / Varun Sachdeva
Retain increases the reference count by 1, meaning it prevents an object from being deallocated. Copy creates a new instance of the object and increases its reference count. However, with copying, any changes made to the new object do not affect the original.
| Is This Answer Correct ? | 0 Yes | 0 No |
Does copy increase retain count?
Are callbacks closures?
Explain what do you mean by synthesized in objective-c?
What are the advantages of swift over objective c?
Can you use swift and objective c together?
What is better objective c or swift?
Is objective c faster than swift?
What is objective writing?
What is protocol with example?
What is the latest version of objective-c?
What is m file?
What is an nsobject?