Created
February 24, 2019 14:20
-
-
Save ayoub-9/13868b6f26fc9001b504b69d1a33013d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var dbRef:DatabaseReference! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
dbRef = Database.database().reference() | |
let myEps = dbRef.child("users").child("InfoUser").child("Eps") | |
myEps.observeSingleEvent(of: .value) { (snapshot) in | |
let enumrator = snapshot.children | |
while let myEpss = enumrator.nextObject() as? DataSnapshot { | |
let item = myEpss.value as AnyObject | |
print(item) | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
import UIKit
import Firebase
import FirebaseDatabase
class EPISODESViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
}