self.mapView.addAnnotation(details as MKAnnotation)我遇到的问题是,我想要在特定的时间间隔更新“细节”注释的坐标,但是我无法访问“详细信息”注释,因为它当然超出了范围。另一种选择是删除所有注释并使用更新的坐标重新创建它们,但这是我试图避免的事情。
可能值得注意的是,由于许多原因,我不能简单地在我的
我使用一个按钮删除所有地图注释,但是在我更新到Xcode7之后,我遇到了这个错误:if let annotations = (self.mapView.annotationsMKAnnotation){ if let annotation = _annotation as?MKAnnotation {