Swift Developer Question:

Do you know 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 Swift Developer PDF Read All 39 Swift Developer Questions
Previous QuestionNext Question
Explain me some Common Execution States In Ios?Tell us what Are B-Trees?