2017-03-28 3 views
3

Ich erhalte diese StörungSwift Fehler - Verwendung von ungelösten Bezeichner 'kGMSMarkerAnimationPop'

Verwendung von ungelösten Kennung 'kGMSMarkerAnimationPop'

wenn ich den folgenden Code in Swift 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() 

Wie kann ich es beheben?

+0

versuchen kGMSMarkerAnimation.Pop –

+0

@Anbu, als ich versuchte, dass ich Fehler wie Verwendung von ungelösten Kennung –

+0

Überprüfung dieser Frage http 'kGMSMarkerAnimation' ich immer: // Stackoverflow. com/questions/34656475/Mehrdeutige Verwendung von-kgmsmarkeranimationpop-Fehler-in-Swift-2/35439813 –

Antwort

Verwandte Themen