adspace
what is singleton class? Why the whole application creates a single instance?
Answer Posted / babu
A singleton class is a special kind of class where only one instance of the class exists for the entire application. (In the case of an iPhone app, the one instance is shared across the entire app.) Some examples in UIKit are [UIApplication sharedApplication] (which returns the sole instance of the application itself), and [NSFileManager defaultManager] (which returns the file manager instance). Singletons can be an easy way to share data and common methods across your entire app.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Why do all model object attributes get marked with @dynamic and not synthesised? What does @dynamic mean?
Explain parent-child context setup. How does it work? What are the advantages?
What is latest xcode version?
What is latest version of ios?
What are the different store migration options? How do they work?
What is latest ios version?
What is dependency management tools?
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's the latest version of ios?
What are transient properties?
How to handle concurrency problems in core data?
What is nsmanagedobjectcontext? What are the different concurrency types? Explain them.
What is the purpose of reuseidentifier?