Created
February 21, 2013 19:57
-
-
Save inailuy/5007658 to your computer and use it in GitHub Desktop.
Creating a global instance of app delegate for a iOS project
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
+ (AppDelegate *)instance | |
{ | |
return (AppDelegate *)[UIApplication sharedApplication].delegate; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment