Run-Eat / Run-It

내일배움캠프 iOS 2기 최종프로젝트 5조
0 stars 0 forks source link

[Feat]#43 - 커스텀 annotation 노출 후 목적지 변경 시 기존 annotation 원복 #43

Closed cantabilano closed 7 months ago

cantabilano commented 7 months ago

To-do

cantabilano commented 7 months ago

스크린샷 2024-03-06 18 19 11 상기 맵에서처럼, 기존에 선택했던 커스텀 startPin과 endPin이, 새로운 GS25 annotation을 선택했을 때, 지워지지가 않네요. ㅠㅠ RunningMapViewController 의 301번째 코드 didSelect 부분입니다. 스크린샷 2024-03-06 18 19 00

cantabilano commented 7 months ago

var annotations: [MKAnnotation] { get } 으로 annotations는 [MKAnnotation] 배열로 되어 있기 때문에, 배열에서 선택되었던 annotations를 찾아서 지우도록 하는 것으로 구현하겠습니다.