You need to import AppDelegate into the .m file where you use
[[[UIApplication sharedApplication] delegate] specifyStartLevel];
I like to import it with a title that gives me a shortcut.
GlobalData.h #import "AppDelegate.h" #define APPDELEGATE (AppDelegate *)[[UIApplication sharedApplication] delegate]
Then when I use it in any class, I just
#import "GlobalData.h"
I use this approach because then I can store more #define for some global constants (i.e. soundFXVolume - #define SOUND_FX_V 0.6
)
source share