Vote count: 0 I've read a lot of topics about Swift Json parsing but as the result I found unpredictable behaviour. E.g., for this code: if let city = cities[ndx] as? [String: AnyObject], let population: UInt64 = (city["population"] as? NSNumber)!.unsignedLongLongValue { if (population > 0) { if let name = city["name"] as? String, let lat: Double = Double((city["lat"] as? String)!), let lon: Double = Double((city["lng"] as? String)!), } } to retrieve integer value I have to use AnyObject > NSNum...
ادامه مطلب