Firebase: when to call removeObserverWithHandle in swift
问题 Documentation says you need to call observeEventType:withBlock to remove an observer if you no longer need it. I've seen samples where it is called within ViewDidDisAppear . I also find some Obj-C code called this method within deinit , which is not ncessary in Swift. In my simple app, however, I want data to be synced as long as I am in the app. If this is the case, do I have to call observeEventType:withBlock ever? I checked the Chat-Swift sample code on Firebase website, and did not find