A MKCoordinateRegion
has two fields: 1) center, 2) span.
You should use the MKCoordinateRegionMake
macro for this:
CLLocationCoordinate2D center = CLLocationCoordinate2DMake(35, -90); // pick desired values
MKCoordinateSpan span = MKCoordinateSpanMake(100, 100); // pick desired values
MKCoordinateRegion region = MKCoordinateRegionMake(center, span);
The syntax:
MKCoordinateRegion region = { { 0, 0 }, { 0, 0 } };
is a shortcut from C for initializing the struct values. The first pair is for the center
field and the second pair is for the span
field.