What happens if you add your just created object to a mutable array, and you release your object?
Answer Posted / Sanjeev Suman
When you add a newly created object to a mutable array and then release the object, the retain count of the object becomes 1 (because the array retains it). However, since you've also released it manually, its retain count will eventually reach zero, and it will be deallocated, causing the object to disappear from the array.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
No New Questions to Answer in this Category !! You can
Post New Questions
Answer Questions in Different Category