Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fileprivate func fetchUsersFromDatabase() {
- Database.database().reference().child("JobPost").observeSingleEvent(of: .value, with: {(Snapshot) in
- if let eachDict = Snapshot.value as? NSDictionary{
- for each in eachDict{
- print(each.key )
- print(each.value )
- print((each.value as! NSDictionary)["title"] ?? "No data")
- }
- }
- self.setupDummyCards()
- }, withCancel: {(Err) in
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement