Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. fileprivate func fetchUsersFromDatabase() {
  2. Database.database().reference().child("JobPost").observeSingleEvent(of: .value, with: {(Snapshot) in
  3.  
  4.  
  5. if let eachDict = Snapshot.value as? NSDictionary{
  6.  
  7. for each in eachDict{
  8.  
  9. print(each.key )
  10. print(each.value )
  11. print((each.value as! NSDictionary)["title"] ?? "No data")
  12.  
  13. }
  14. }
  15. self.setupDummyCards()
  16. }, withCancel: {(Err) in
  17. })
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement