Oscar Falmer
Oscar Falmer

Reputation: 1801

Cannot invoke initializer for type 'MKPlacemark' with an argument list of type

I used LocationManager which you can find on this gitHub https://github.com/varshylmobile/LocationManager/blob/master/LocationManager.swift 2 months ago with Swift 1.2 and it was working perfectly. I just converted my app in Swift 2.0, I solved all the problems but there is still this one that I don't find how to fix.

Here is the error : Cannot invoke initializer for type 'MKPlacemark' with an argument list of type '(coordinate: CLLocationCoordinate2D, addressDictionary: [NSObject : AnyObject])'

Someone has any idea how to solve it ?

Oscar

[img]https://i.sstatic.net/xWnCn.png

Upvotes: 1

Views: 786

Answers (1)

Oscar Falmer
Oscar Falmer

Reputation: 1801

Thank you @Leo Dabus, it works !

as? [String : AnyObject]

Upvotes: 1

Related Questions