Geocoder throwing odd exception
I have a method that is triggered on the press of a button. This is most
of the implmentation:
[self.placeDictionary setValue:@"166 Bovet Rd" forKey:@"Street"];
[self.placeDictionary setValue:@"San Mateo" forKey:@"City"];
[self.placeDictionary setValue:@"CA" forKey:@"State"];
[self.placeDictionary setValue:@"94402" forKey:@"ZIP"];
CLGeocoder *geocoder = [[CLGeocoder alloc] init];
[geocoder geocodeAddressDictionary:self.placeDictionary
completionHandler:^(NSArray *placemarks, NSError *error) {
if([placemarks count]) {
CLPlacemark *placemark = [placemarks objectAtIndex:0];
CLLocation *location = placemark.location;
CLLocationCoordinate2D coordinate = location.coordinate;
PFGeoPoint* userLocation = [PFGeoPoint
geoPointWithLatitude:coordinate.latitude
longitude:coordinate.longitude];
NSLog(@"%f,%f", userLocation.latitude, userLocation.longitude);
} else {
NSLog(@"location error");
return;
}
}];
However, I am getting the following exception:
*** WebKit discarded an uncaught exception in the
webView:shouldInsertText:replacingDOMRange:givenAction: delegate:
<NSUnknownKeyException> [<__NSDictionaryI 0x873a3c0>
setValue:forUndefinedKey:]: this class is not key value coding-compliant
for the key Street.
I have absolutely no idea what this exception means. Could someone help me
understand why it is producing this?
No comments:
Post a Comment