self.MyMapView.centerCoordinate.latitudeと newLocation.coordinate.latitudeが同じなのに==でtrueにならない。
typedef struct {
CLLocationDegrees latitude;
CLLocationDegrees longitude;
} CLLocationCoordinate2D;
CLLocationDegreesの比較は??
とりあえずdoubleにキャストするかと思ったが、それでもだめで、なんとdoubleとかは==で比較できない驚愕の事実。
fabsつかう。
double lat1 = (double)self.MyMapView.centerCoordinate.latitude;
double lon1 = (double)self.MyMapView.centerCoordinate.longitude;
double lat2 = (double)newLocation.coordinate.latitude;
double lon2 = (double)newLocation.coordinate.longitude;
if (fabs(lat1 - lat2) < FLT_EPSILON && fabs(lon1 - lon2) < FLT_EPSILON) {