Below is the code that caused the crash
- (void)addMapView { UIApplicationState appState = [[UIApplication sharedApplication] applicationState]; if((a