I'm developing an iOS 4 application.
I have a ViewController that contains another class. In this class, I use CoreLocation to track GPS and heading.
I want to notify ViewController that there is an error on GPS tracking with this method:
- (void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error
I want to check if user has disable Location tracking and show a AlertView, but I only can do that on a viewController.
How can I notify ViewController when this error occurs?