开发者

Iphone unregistering nsnotifications on application will terminate why?

开发者 https://www.devze.com 2022-12-15 06:06 出处:网络
I have always wondered why is it necessary to unregister your nsnotifications in the application will terminate method. I know that nothing that I can notice happens if I don\'t, so what are the impli

I have always wondered why is it necessary to unregister your nsnotifications in the application will terminate method. I know that nothing that I can notice happens if I don't, so what are the implications of not doi开发者_Go百科ng so?. Any help will be greatly appreciated.

Thank you.

-Oscar


There aren't really any. Everything is torn down on termination, including all your registered notification listeners.


You wouldn't want to receive another notification and start processing it after you've already started to shut things down in applicationWillTerminate.

0

精彩评论

暂无评论...
验证码 换一张
取 消