Advertise here




Advertise here

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

type any has no subscript members

jarvjarv Posts: 205Registered Users @ @
Please help, I am trying to get a couple of values out of my Firebase database but I get the error: type any has no subscript members
ref.child("venue-list").observe(.value, with: { (snapshot) in
            for child in snapshot.children {
                let msg = child as! FIRDataSnapshot
                print("\(msg.key): \(msg.value!)")
                let latitude = snapshot.value!["vLat"] as? [String:AnyObject]
                let longitude = snapshot.value!["vLon"] as? [String:AnyObject]
                self.latLabel.text = latitude
                self.lonLabel.text = longitude
                
            }
        })
Tagged:
Sign In or Register to comment.