UIApplication sharedAppication error: program seems to be accessing wrong file
问题 in my MainViewController implementation, I need to access variables from two different classes. one of the classes is the AppDelegate and the other is the FlipsideViewController. the way I accessed these was through this code: -(void)someMethod { MyApplicationAppDelegate *appDelegate = (MyApplicationAppDelegate *)[[UIApplication sharedApplication] delegate]; FlipsideViewController *viewController = (FlipsideViewController *)[[UIApplication sharedApplication] delegate]; then I have an array I