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
Who is the founder of ios?
What is the difference between stack and heap?
What is dependency management?
When would you say that an app is not in a running state?
What is the difference between android and ios?
What is callback in ios?
Explain what is iphone reference library?
Different types of persistent stores? Which all types can we have on ios?
Which language is best for ios development?
How to represent layer objects in iOS operating system ?
How we can do multithreading in ios?
What is iphone os?
What is active state in ios?
what are fetched properties?
What is error in application in iphone?