Skip to content

Instantly share code, notes, and snippets.

@inailuy
Created February 21, 2013 19:57
Show Gist options
  • Save inailuy/5007658 to your computer and use it in GitHub Desktop.
Save inailuy/5007658 to your computer and use it in GitHub Desktop.
Creating a global instance of app delegate for a iOS project
+ (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