I've been playing around with Swift, and just came across an issue.
I have the following Dictionary in:
var locations:Dictionary<String,CLLocationCoordinate2D> = ["current":CLLocationCoordinate2D(latitude: lat, longitude: lng) ];
println("current locaition is (locations["current"])")
but the compiler is complaining about double quotes around current
which represent the a key in my dictionary.
I tried escaping it with
but it wasn't the right way.
Appreciate any help.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…