Answer Posted / 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 |
Post New Answer View All Answers
What json framework supported by ios?
Why do we override drawrect: method?
How you can add frameworks in xcode project?
List the devices compatible with ios 11? : IOS Architect
What is the methods for unzip file in AFNetworking
What are the application lifecycle in ios?
When was ios invented?
What is iphone reference library?
Explain how an autorelease pool works at the runtime level
Different types of persistent stores? Which all types can we have on ios?
What language is ios written?
Explain me how to parse json?
What is the first responder?
what is the difference between Xcode, Cocoa and Objective C?
Explain the difference between stack and heap memory?