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

How to registering your device with the program portal for iphone development?

796


What is sandbox in iOS operating system?

963


What are the design patterns in ios?

878


Describe @objc inference?

821


In mapKit frame work, how to get current user location

1351


If any app can run in the background, what about battery life?

817


What is the meaning of 'strong'keyword?

865


What is nsoperation and nsoperationqueue in ios?

895


What is plist?

891


What is the use of double question marks (“??”) ?

883


What is arc ? How it works?

972


What is managed object context and what are its functions?

826


What is core data?

783


What does use core data mean in xcode?

897


Is appdelegate a singleton?

836