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!
(from link)
let responsemessage = json["response"]! as? string
must changed to
let responsemessage = (json anyobject)["response"]! as? string
the array must cast anyobject.
Comments
Post a Comment