Download data from firebase

Asked

Viewed 49 times

-1

Dowbn

inserir a descrição da imagem aqui

I would like help to download the information inside the "Items". Since it would be a list created by the user, I would not put a limit of items in it, and at the same time I would not know how much data there is.

I’d like to know the best way to do that. If I remove the part as a comment "Let Items = value["Items"] as: String" the code does not execute.

Thanks for your help

1 answer

0

I managed to solve. I’ll put it on record as I resolved, I hope to help the next one who has similar doubt.

I returned the List value to a string variable (Name).

I used didselect (tableview) to pass the variable information to another viewController. In this controller view, I created a function where you receive the following information.

![inserir a descrição da imagem aqui

//Objectsarray is an Empty array created outside of the didViewLoad, to receive data from the firebase array, and after that be able to use in the tableView. inserir a descrição da imagem aqui //Remember to use the watchData, turn on all the necessary outlet and use the tableview.delegate = self and tableview.datasource = self.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.