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 |
What is the primary use of the category in the objective-c?
What is nonatomic in objective c?
What is dynamic dispatch method?
Why swift is better than objective c?
Why swift is faster then objective c?
Does objective c have pointers?
What is difference between objective c and c?
What is difference between objective c and swift?
Is closure a function?
Explain the difference between uiwindow and uiview?
Explain what do you mean by dot notation?
Explain the way messaging works in objective-c?