I’m pulling my hair over this from past few days…
In Whereamiviewcontroller.m file, we have implemented several methods such as:
-(void)locationManager:(CLLocationManager *)manager didUpdateLocations:(NSArray *)locations
-(void)locationManager:(CLLocationManager *)manager didFailWithError:(NSError *)error
NSLog(@“Could not find location: %@”,error);
-(void)mapView:(MKMapView *)mapView didUpdateUserLocation:(MKUserLocation *)userLocation
CLLocationCoordinate2D loc = [userLocation coordinate]; MKCoordinateRegion region = MKCoordinateRegionMakeWithDistance(loc, 250, 250); [worldView setRegion:region animated:YES];
But we have not declared any of these methods in .h file…and still the program runs fine??? How?!
Also, why are we not using @property to declare instance variables in .h file?