Outputing struct to NSLog for debugging?
- by fuzzygoat
I am just curious, is there a way to print via NSLog the contents of a struct?
id <MKAnnotation> mp = [annotationView annotation];
MKCoordinateRegion region =
MKCoordinateRegionMakeWithDistance([mp coordinate], 350, 350);
I am trying to output whats in [mp coordinate] for debugging.
.
EDIT_001:
I cracked it, well unless there is another way.
id <MKAnnotation> mp = [annotationView annotation];
CLLocationCoordinate2D location = [mp coordinate];
NSLog(@"LAT: %f LON: %f", location.latitude, location.longitude);
many thanks
gary