Skip to content

Instantly share code, notes, and snippets.

@sendoa
Created November 27, 2012 14:52
Show Gist options
  • Save sendoa/4154628 to your computer and use it in GitHub Desktop.
Save sendoa/4154628 to your computer and use it in GitHub Desktop.
AppDelegate accesible de forma global
#import <UIKit/UIKit.h>
#define ApplicationDelegate ((QBKAppDelegate *)[UIApplication sharedApplication].delegate)
@interface QBKAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@property (copy, nonatomic) NSString* unaCadena;
@end
NSString* unString = ApplicationDelegate.unaCadena;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment