adspace
What is factory methods ? What is the advantage of using it ?
Answer Posted / babu
Class factory methods are implemented by a class as a convenience for developers. These methods combine allocation and initialisation in a single step and return the created object.
NSDate:
Eg: + (id)dataWithBytes:(const void *)bytes length:(unsigned)length;
NSDictionary
Eg:+ (instancetype)dictionary;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is nsmanagedobjectcontext? What are the different concurrency types? Explain them.
What is latest ios version?
What is the purpose of reuseidentifier?
What are transient properties?
Why do all model object attributes get marked with @dynamic and not synthesised?
In a single model, can I have few entities in one sqlite db file and remaining in another sqlite db file?
What is latest xcode version?
What's the latest version of ios?
What is latest version of ios?
What are the different store migration options? How do they work?
How to handle concurrency problems in core data?
Explain parent-child context setup. How does it work? What are the advantages?
What is dependency management tools?
Why do all model object attributes get marked with @dynamic and not synthesised? What does @dynamic mean?