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 appdelegate in xcode?
What is difference between static library and framework?
Where can you test Apple iPhone apps if you don’t have the device?
What devices will support ios 7?
Bundle & document directory, sandbox ?
Do you know what are layer objects and what do they represent?
Please explain what is difference strong and weak reference?
what is dispatchQueue?
Is appdelegate a singleton?
Define view object in iOS operating system?
0 Answers SwanSoft Technologies,
What is the full meaning of ios?
What happens if iapplication object does not handle an event?