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

What is Automatic Reference Counting (ARC) in iOS operating system?

833


What is block in ios?

804


Explain xctest test case code.

814


What is use of nsoperation? How nsoperationque works?

787


What are the functions of managed object context?

1008


What are the design patterns in ios?

880


Explain which all events will perform an ios application in background

1447


What json framework supported by ios?

850


When an app is said to be in active state?

819


Does objective-c contain private methods?

805


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

797


Explain the different types of ios application states.

818


What is the difference between NSArray and NSMutableArray in iOS operating system?

814


What is nsmanagedobjectcontext? What are the different concurrency types?

764


Please explain what is difference strong and weak reference?

737