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
What is category in ios?
What are the different store migration options? How do they work?
What are layer objects?
Explain app id?
Who calls the dealloc strategy? Would we be able to implement dealloc in arc? In the event that indeed, what is the need to do that?
What is the difference between retain & assign in iOS operating system?
What language is ios written?
What does 2x resolution mean?
Which language is best for ios development?
Which is the framework that is used to construct application’s user interface for ios?
What are the different store migration options?
What are the location services?
Which compiler is used by ios? : IOS Architect
What is delegate in ios objective c?
What is appdelegate in xcode?