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 -

linux - gzip: stdin: not in gzip format tar: Child returned status 1 tar: Error is not recoverable: exiting now -

sql - MySQL - Finding Empty relations -