View
62
Download
0
Category
Preview:
Citation preview
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)
Recommended