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 |
How is string represented in objective-c?
What is an accessor method?
How to declare global variable in objective c?
What is a delegate? Can you retain delegates?
Does objective c have pointers?
What is nsarray objective c?
What is objective c vs c?
Who made objective c?
How do you get closure?
What is an objective fact?
What is a delegate in objective c?
What is m script in matlab?