- (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]