ios之全局变量存储与获取

- (void)viewDidLoad
{
    [super viewDidLoad];
	// Do any additional setup after loading the view, typically from a nib.
    AppDelegate *delegate = (AppDelegate *)[UIApplication sharedApplication].delegate;
    delegate.viewController = self;

}
 
 
运用
[UIApplication sharedApplication]




你可能感兴趣的:(ios之全局变量存储与获取)