UX Designer Question:

Tell me the difference between copy and retain?

Tweet Share WhatsApp

Answer:

Retaining an object means the retain count increases by one. This means the instance of the object will be kept in memory until it’s retain count drops to zero. The property will store a reference to this instance and will share the same instance with anyone else who retained it too. Copy means the object will be cloned with duplicate values. It is not shared with any one else.

Download UX Designer PDF Read All 67 UX Designer Questions
Previous QuestionNext Question
Tell us what is onboarding and why is it so important for mobile design?Tell me what is KVC and KVO? Give an example of using KVC to set a value?