簡體   English   中英

在iOS 7中限制地圖上的注釋

[英]limit annotations on the map in iOS 7

我使用以下代碼創建了100個注釋:

CLGeocoder().geocodeAddressString("Trieste, Via Svevo", completionHandler: {(placemarks, error)->Void in
  if error == nil {
    placemark = placemarks[0] as CLPlacemark

    self.puntoCercato2.coordinate = placemark.location.coordinate
    self.puntoCercato2.title = "Fermata di Via Svevo"
    self.puntoCercato2.subtitle = "1-8-29-B"
    self.myMap.addAnnotation(self.puntoCercato2)

  }else{
    println("2")
  }
})

iOS 8的所有引腳都顯示[1]: http : //i.stack.imgur.com/eh8Le.jpg

iOS 7僅前50個[2]: http : //i.stack.imgur.com/g8m7j.jpg

為什么??

我認為我們需要更多代碼來了解那里的問題。 請編輯您的問題,並提供有關CLPlaceMarks的更多詳細信息。 在發布的代碼段中,您僅添加了一個地標,即地標數組的第0個位置。 如何創建數組?

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM