var reference = Firebase(url: "https://myapp.firebaseio.com/the_awesome_node")
reference.observeEventType(FEventType.Value, withBlock: { (snapshot) -> Void in
//do something
})
Later on in my code, I want to get https://myapp.firebaseio.com/the_awesome_node
given the reference (of class Firebase).
I couldn't find it in the API.
解决了:
reference.parent + "/" + reference.key
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.