adspace
What is the difference between retain & assign in iOS operating system?
Answer Posted / Priyanka Pethe
In Objective-C, the 'retain' message increases the retain count of an object by 1, meaning that you are telling the object to hold on to its memory a little longer. The 'assign' message simply sets a new value for an object without increasing or decreasing its retain count. It is used with primitive types like NSNumber and NSString.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain parent-child context setup. How does it work? What are the advantages?
What are the different store migration options? How do they work?
In a single model, can I have few entities in one sqlite db file and remaining in another sqlite db file?
Why do all model object attributes get marked with @dynamic and not synthesised?
What is dependency management tools?
What is latest xcode version?
What are transient properties?
Why do all model object attributes get marked with @dynamic and not synthesised? What does @dynamic mean?
What is latest ios version?
What is latest version of ios?
What's the latest version of ios?
What is the purpose of reuseidentifier?
How to handle concurrency problems in core data?
What is nsmanagedobjectcontext? What are the different concurrency types? Explain them.