Does copy increase retain count?
Answer / Jitendra Kumar Ray
Yes, when you use the copy method on an object in Objective-C, the retain count of the original object is incremented by 1 (because a new copy is created), and the retain count of the new copy is also set to 1.
| Is This Answer Correct ? | 0 Yes | 0 No |
Is objective c garbage collected?
What is class extension?
What optional binding?
What is polymorphism in objective-c?
What is the difference between function and objective?
What is strong and weak in objective c?
What does alloc mean in objective c?
How to convert nsnumber to nsstring in objective c?
What is an objective description?
What are the main objectives of training?
Is objective c better than swift?
What do you mean by category and when to use it?