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 the difference between viewdidload and viewdidappear?
How do you stop apps running in the background on ios?
Explain the usage of struct?
What is difference between delegate and datasource in ios?
What is UICollectionView ?
Is realm db free?
What are the different store migration options? When are they used? How do they work? What is mapping model?
What is difference between weak and strong in ios?
What are the lifecycle events of uiviewcontroller?
Who calls the main function of you app during the app launch cycle in iOS operating system?
0 Answers TryTechnicals Pvt Ltd,
What is 1x 2x?
Explain what is garbage collection?