
Featured
- 
            
              Objective C or Swift - Which Technology to Learn for iOS Development?Swift programming language is completely based on by siddharth.sindhi
- 
            
              Make UIImage White Background Transparent in iOSIf you came across to a requirement where you want by ashish.nakoti
- 
            
              User's location update on server when app is in background.Code for those Apps where we need to update user's by ashish.nakoti
- 
            
              Animate button with zoom and bounce effect in iosMany social apps are using bouncing effect for but by ashish.nakoti
- 
            
              Crop an image from UIImageViewWith the following method stated below you can cro by kuldeep.butola
Tags
AppDelegate,UIApplicationDelegate,UIApplication Object,Singleton
                      
UIApplicationDelegate-> UIApplicationDelegate is a protocol which consists some predefine methods. These methods are called by singleton UIApplication object.
UIApplication Object-> UiApplication Object is the object of UIApplication... 
                      Best way to create a singleton class in Objective-C
                      There are different ways to create a singleton/shared instance of a class in Objective-C.
Here I have explained two most preferred methods for it and both are thread safe. 
1) Using "@synthesize"
    #define SINGLETON_FOR_CLASS(yourclassname... 
                      How to create Singleton class
                      Sometimes, we need access of some object /data/ variable globally throughout the App. In that case, creating a singleton class which can be accessed through out the app is helpful. 
App Delegate is a good example of singleton class. After goog... 
                       
        
        
 
        
         
        
        