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
How to do upload of large sized video file to server ? while uploading user presses “Homebutton” How long will execute?
What is the biggest change with ios 7?
What is difference between delegate and datasource in ios?
What is the viper?
What are the lifecycle events of uiviewcontroller?
Is xcode a framework?
What do you know about the ios kernel?
Why core data is faster than sqlite?
What are the features of iphone 3gs?
What is appdelegate?
What happens when we invoke a method on a nil pointer?
Do you know which json framework is supported by ios?
What are ios functions?
What is weak in ios?
Different types of persistent stores? Which all types can we have on ios?