Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


what is singleton class? Why the whole application creates a single instance?



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

Post New Answer

More Apple iOS Interview Questions

How to delete images in ios?

0 Answers  


What are the different store migration options? How do they work?

0 Answers  


What are the ways to store data localy on iphone device?

0 Answers  


Define view object in iOS operating system?

0 Answers   SwanSoft Technologies,


Find the letter count in UItextfield? Including first character?

0 Answers  


Assume that your app is running in the foreground but is currently not receiving events. In which sate it would be in?

0 Answers  


What is the difference between delegates and notifications in iOS operating system?

0 Answers   B-Ways TecnoSoft,


What is meaning of 'readonly' keyword?

0 Answers  


What are the viewcontroller lifecycle in ios?

0 Answers  


What is onboarding and why is it so important for mobile design? : IOS Architect

0 Answers  


How do you usually persist data on ios? : IOS Architect

0 Answers  


What is ios realm?

0 Answers  


Categories