Skip to content

Instantly share code, notes, and snippets.

@pietbrauer
Created June 22, 2014 18:07
Show Gist options
  • Select an option

  • Save pietbrauer/3e944fb9329fb0e306c0 to your computer and use it in GitHub Desktop.

Select an option

Save pietbrauer/3e944fb9329fb0e306c0 to your computer and use it in GitHub Desktop.
I am getting the following error "Cannot convert the expression's type 'Void' to type 'String!'" when trying to call https://github.com/xing/XNGAPIClient/blob/master/XNGAPIClient/XNGAPIClient%2BGeoLocations.h#L31-L37
XNGAPIClient.sharedClient().putUpdateGeoLocationForUserID("me", accuracy: 3000, latitude: location.coordinate.latitude as CGFloat, longitude: location.coordinate.longitude as CGFloat, ttl: 420, success: { (JSON: AnyObject!) in }, failure: { (error: NSError!) in })
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment