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 |
Explain about Viewcontroller lifecycle.
What is the purpose of reuseidentifier? What is the benefit of setting it to a non-nil value?
What are the ios devices?
How to use reusable cell in uitableview?
How can you respond to state transitions on your app?
How nsoperationque works?
What is bridging header in ios?
What is the 'implementation'?
What is latest xcode version?
What is advantage of categories? What is difference between implementing a category and inheritance?
What is queue in ios?
What is concurrency in ios?