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
Explain the features is ios 6?
What is callback in ios?
How do you fix app errors on iphone?
What is the difference between copies & retain in iOS operating system?
Do you know what is iphone reference library?
How much do ios developers get paid?
What json framework supported by ios?
Define encoding or serialization??
What are all the newly added frameworks iOS 4.3 to iOS 5.0?
What is nsfetchedresultscontroller? How do you turn on content monitoring?
How to deal with sqlite database?
What is background mode in ios?
Who is the developer of ios?
Explain the difference between copy and retain?
What is nsuserdefaults? What type of data can we store there?