nhanh câu hỏi:Loại bỏ quan sát viên của NSNotificationCenter trong Singleton Objective C
Tôi có một lớp singleton mà là một thành viên trong vài NSNotifications. Kể từ khi Singletons kéo dài tuổi thọ của ứng dụng.
Tôi có phải thực hiện
[NSNotificationCenter defaultCenter] removeObserver:self]
Trong lớp singleton của tôi?
Làm cách nào để xử lý trung tâm NSNotification trong Singletons trong iOS?
Cảm ơn
bản sao có thể có của [Nếu thêm người quan sát cho thông báo trong AppDelegate, tôi có cần phải xóa nó đi không?] (Http://stackoverflow.com/questions/9560419/if-add-an-observer-for- a-notification-in-the-appdelegate-do-i-need-to-bother-re) –