我收到此錯誤斯威夫特錯誤 - 使用未解決的標識符「kGMSMarkerAnimationPop」
使用未解決的標識符「kGMSMarkerAnimationPop」
當我用斯威夫特3以下代碼:
let camera = GMSCameraPosition.camera(withLatitude: location.coordinate.latitude, longitude: location.coordinate.longitude, zoom: 14)
mapView = GMSMapView.map(withFrame: CGRect.zero, camera: camera)
mapView?.isMyLocationEnabled = true
mapView?.settings.myLocationButton = true
view = mapView
let marker = GMSMarker()
marker.position = CLLocationCoordinate2D(latitude: location.coordinate.latitude, longitude: location.coordinate.longitude)
marker.title = "Sydney"
marker.snippet = "Australia"
marker.appearAnimation = kGMSMarkerAnimationPop // the error is occurring in this line
marker.map = mapView
locationManager.stopUpdatingLocation()
我怎樣才能解決這個問題?
嘗試kGMSMarkerAnimation.Pop –
@Anbu當我嘗試,我得到錯誤的使用未解決的標識符「kGMSMarkerAnimation」 –
檢查這個問題的http://計算器。 COM /問題/ 34656475 /曖昧 - 使用 - 的-kgmsmarkeranimationpop誤差合迅速-35439813分之2 –