Page 107


#1

Hi guys,

I can not figure out WHY they chose the function “MKCoordinateRegionMakeWithDistance” instead of the function “MKCoordinateRegion”? :unamused: :unamused:

They almost do the same thing right??

MKCoordinateRegionMake
Creates a new MKCoordinateRegion from the specified coordinate and span values.

MKCoordinateRegionMakeWithDistance
Creates a new MKCoordinateRegion from the specified coordinate and distance values.


#2

Almost, but the span requires a structure that has two fields, which are latitude and longitude. Lat and lon can’t aren’t exact units (depending on where you are on the globe), and we typically think in meters, so we went with what we chose. Which is also a lot easier.


#3

Thanks for your answer. Long way to go to become an expert…