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 |
Define cocoa?
What is the use of double question marks (“??”) ?
How to register as a iphone developer?
Which json framework is supported by ios? : IOS Architect
Explain difference between nil and nil?
How to implement "load more" using nsfetchedresultscontroller?
What are layers?
What are moments and collections?
What's the latest version of ios?
DB updation when app new version comes ?
Can I have relationship between entities in separate stores (in case of configurations)?
What is the difference between viewdidload and viewwillappear?