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?

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


Please Help Members By Posting Answers For Below Questions

Define ipa?

726


How are non-atomic and atomic properties different?

824


What is the mean of not running state in ios?

756


What are sensors in iphone?

840


Are ios developers in demand?

744


Explain the difference between viewdidload and viewdidappear?

786


What is an NSOperationQueue and how/would you use it in iOS operating system?

775


What is clean architecture ios?

780


What is retain in ios?

723


Different types of persistent stores? Which all types can we have on ios?

758


Do you know what is iphone sdk?

785


Can you please explain the difference between frame and bounds?

805


Explain ios multitasking?

749


Explain difference between mrc and arc?

791


Explain your process for tracing and fixing a memory leak iOs?

817