Setting corelocation results to NSNumber object parameters
- by Dan Ray
This is a weird one, y'all.
- (void)locationManager:(CLLocationManager *)manager didUpdateToLocation:(CLLocation *)newLocation fromLocation:(CLLocation *)oldLocation
{
CLLocationCoordinate2D coordinate = newLocation.coordinate;
self.mark.longitude = [NSNumber numberWithDouble:coordinate.longitude];
self.mark.latitude = [NSNumber…