ios-lifecycle

Getting the values of data stored in firebase

China☆狼群 提交于 2019-12-25 08:44:21
问题 I'm trying to get access to the values stored in firebase dashboard to use them in different functions and methods in the class. I used this method in this question I have tried to print their values, the whole app has crashed and it gave me that their nil! They are not nil actually! I used a similar method in viewDidLoad and I could retrieve the values to labels! let refer = FIRDatabase.database().reference().child("UserDevices") var globalEmail : String! var globalPhone : String! var