Realtime Database with iOS and Firebase
33
-
Upload
nscoder-mexico -
Category
Technology
-
view
50 -
download
0
Transcript of Realtime Database with iOS and Firebase
let rootRef = FIRDatabase.database().reference()let logRef = rootRef.child("log")let logKey = logRef.childByAutoId().key
let value = "Hello World"logRef.child(logKey).setValue(value)
let rootRef = FIRDatabase.database().reference()let logRef = rootRef.child("log")
logRef.observeEventType(.Value, withBlock: { (snapshot) in // Funny Stuff print(snapshot) }, withCancelBlock: nil)