MKMapKit의 region 속성을 설정할 때마다 범위가 두 배가됩니다. 예를 들어iphone의 이상한 동작 MKMapKit
:
MKCoordinateRegion currentRegion = map.region; // assume the current center of region is around New-York and the span is 2 by 2
map.region = map.region; // assign the region to itself
MKCoordinateRegion newRegion = map.region;
// the span of newRegion is different (almost twice than currentRegion)
여기 무슨 일이야?
또한 지역 속성이 매우 이상한 행동을 한 것으로 나타났습니다. 제 경우에 이것은 지역이 컸을 때 (100 킬로미터 너비 이상) 일어났습니다. 작은 규모에서는 이것이 발생하지 않았습니다. –
업데이트 :이 버그는 시뮬레이터에서만 나타납니다. iPhone의 MapKit이 올바르게 작동합니다. –