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 a background thread?
What is ios viewwillappear?
Explain shallow copying and depth copying.
Explain interfaces?
How to use core data objects between two threads?
Explain arc?
What is datasource in ios?
What are “strong” and “weak” references? Why are they important and how can they be used to help control memory management and avoid memory leaks?
Explain differences between foundation and corefoundation
Is ios multithreading?
How do you setup/initialise a core data stack in your application? Is this activity performed on main thread? If not, why?
In a single model, can I have few entities in one sqlite db file and remaining in another sqlite db file?