我从iTunes API与AFNetworking获取数据,我想创建一个字典与响应,但我不能这样做。
原文链接:https://www.f2er.com/swift/321009.html错误:无法将表达式的类型“字典”转换为类型“Hashable”
这是我的代码:
func getItunesStore() { self.manager.GET( "https://itunes.apple.com/es/RSS/topfreeapplications/limit=10/json",parameters: nil,success: { (operation: AFHTTPRequestOperation!,responSEObject: AnyObject!) in var jsonResult: Dictionary = responSEObject as Dictionary },failure: { (operation: AFHTTPRequestOperation!,error: NSError!) in println("Error:" + error.localizedDescription) }) }