UX Designer Question:
Download Questions PDF

Tell me the difference between copy and retain?

UX Designer Interview Question
UX Designer Interview Question

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 Interview Questions And Answers PDF

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?