I created 100 annotations using this code :
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 all pins are show [1]: http://i.stack.imgur.com/eh8Le.jpg
iOS 7 only the first 50 [2]: http://i.stack.imgur.com/g8m7j.jpg
Why??
I think we need more code to understand what's the issue there. Please edit your question with more details about the CLPlaceMarks. In the posted snippet you're adding only one placemark, that is the 0th position of the placemarks array. How do you create the array?
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.