Difference between retain and assign ?
Answer / babu
Assign and retain was used in manual memory management (MRC) environment.
assign to set a property’s pointer to the address of the object without retaining it. use weak to have the property point to nil automatically if the object assigned to it is deallocated .
Use retain by default and will manage the object’s reference count automatically whether another object is assigned to the property or it’s set to nil; In ARC you will use strong instead of retain.
Is This Answer Correct ? | 0 Yes | 0 No |
What is delegation pattern in ios?
Is ios development hard?
What is closures in ios?
Explain the usage of struct?
What persistent storage core data uses to save data?
Explain how app delegate is declared by Xcode project templates?
What are ibeacons in ios? : IOS Architect
What is mvc in ios swift?
What is @dynamic and any place where it is used?
How to pass parameter to selector function in swift? : IOS Architect
What is nsoperation and nsoperationqueue?
What is message forwarding?