Type ‘Any?’ has no subscript members
错误点在结果….这只发生在我转换为swift 3 …任何人????
let nextrequest: FBSDKGraphRequest = FBSDKGraphRequest(graPHPath: "me/frIEnds",parameters: ["fIElds": "name,ID,gender"],httpMethod: "GET") nextrequest.start { (connection,result,error) -> VoID in guard let listofFrIEnds = result["data"] as? [AnyObject] else { return } } }解决方法 试试这个
let nextrequest: FBSDKGraphRequest = FBSDKGraphRequest(graPHPath:"me/frIEnds",httpMethod: "GET") nextrequest.start { (connection,error) -> VoID in guard let result = result as? [String:[AnyObject]],let listofFrIEnds = result["data"] else { return } }}总结
以上是内存溢出为你收集整理的ios – swift 3:输入’Any?’没有下标成员全部内容,希望文章能够帮你解决ios – swift 3:输入’Any?’没有下标成员所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)