I have an iphone application with several views and corresponding controllers and xib files. In the controller for the first loaded view, I try to access the delegate for the application, but the returned object is nil
MyAppDelegate *appDelegate = (MyAppDelegate *)[[UIApplication sharedApplication] delegate];
Any ideas why this will be zero?
source share