2017-08-27 105 views

回答

0

coordinateMGLAnnotation的財產是read-only。這方面的文檔是somewhat hidden,但是您可以通過創建自己的實現MGLAnnotation協議的對象來避開此問題,並向coordinate添加setter。

另外,在Mapbox github上一個issue建議您可以使用MGLPointAnnotation,具有read-writecoordinate財產

相關問題