Warning in Custom Map Annotations iPhone

后端 未结 4 1248
南旧
南旧 2020-12-06 07:11

I am using a custom map annotation class for map view in iPhone. Whenever I pop my map view from navigation bar stack I usually see some warnings in console.

MapAnno

4条回答
  •  無奈伤痛
    2020-12-06 07:52

    Latitude and Longitude have differing bounds:

    • (-90, 90) for Lat
    • (-180, 180) for Long

    Passing a value outside of those bounds will cause the custom class to be deallocated and therefore giving you the error that you're receiving. Make sure that you are passing the correct values for both Latitude and Longitude.

    It would be really nice if Apple passed a bounding error for this instead of an early release error. That would've saved me roughly 5 hours worth of time

提交回复
热议问题