Hi Buddies,
I am currently working in Map and i find the current location in my application and displayed. Now i am working with iOS4. So the CLLocationManger delegate method is not calling in iOS4. But i could run my application in older version of Xcode 3.1.4. it works fine and delegate method also called properly. So how can i call the CLLocationManger delegate method in iOS4? Its very weird to me.
- (void)locationManager: (CLLocationManager *)manager didUpdateToLocation: (CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
{
NSLog(@"inside didUpdateToLocation");
MKCoordinateRegion region1;
region1.center = newLocation.coordinate;
region1.span.latitudeDelta = 0.001;
region1.span.longitudeDelta = 0.001;
mapview.mapType = MKMapTypeStandard;
[mapview setRegion:region1 animated:TRUE];
[locationManager stopUpdatingLocation];
}
Please help me out.
Thanks.