what is singleton class? Why the whole application creates a single instance?
Answer / 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 |
Explain me what is "delegate"?
What is dispatch queue in ios?
What is the difference between strong and retain.
What are the different store migration options? How do they work?
How to shut off message alerts in ios?
What are the app states in ios?
What does ios stand for in texting?
What is the use of the UI Automation API?
What is plist?
Who calls the dealloc strategy?
What are different ways that you can specify the layout of elements in a uiview?
What is latest version of ios?