Here's an example of a delegate .h:
#import <UIKit/UIKit.h>
@interface AppDelegate : NSObject <UIApplicationDelegate> {
NSString* name;
BOOL soundOption;
}
@property (nonatomic, retain) NSString* name;
@property (nonatomic) BOOL soundOption;
@end
Top of delegate .m file:
#import "AppDelegate.h"
@implementation QAppDelegate
@synthesize name,soundOption;
That makes 2 global variables, name and soundOption.
To use them in other classes you put this in the top of the .m:
#import "AppDelegate.h"
AppDelegate *delegate;
And this in the loading of that class:
delegate = [[UIApplication sharedApplication] delegate];
Then in that class you can access those variable by delegate.soundOption or delegate.name.