xcode - Swift 3 Error - Type Any has no subscript members -


i converted code swift 3 , these errors have popped up. have no clue following error means.

type 'any' has no subscript members

i have tried change [string: anyobject] other types has not worked. appreciated!

this other stack overflow question might helpful

(from link)

let responsemessage = json["response"]! as? string 

must changed to

let responsemessage = (json anyobject)["response"]! as? string 

the array must cast anyobject.


Comments

Popular posts from this blog

unity3d - Rotate an object to face an opposite direction -

angular - Is it possible to get native element for formControl? -

javascript - Why jQuery Select box change event is now working? -