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

What is arc?

0 Answers  


What is core data?

0 Answers  


What is ios closure?

0 Answers  


What is core data in ios swift?

0 Answers  


What are different instruments xcode supports for app profiling?

0 Answers  


Is ios development hard?

0 Answers  


How to switch off predictive text?

0 Answers  


How to parse json? Explain

0 Answers  


What is difference between 'assign' and 'retain' keyword?

0 Answers  


What does ns stand for ios?

0 Answers  


Difference between ScrollviewdidScroll and didendDecelerating delegates?

1 Answers  


What is the difference between android and ios?

0 Answers  


Categories