In ARC do we need to send removeObserver: explicitly?

后端 未结 4 1479
情歌与酒
情歌与酒 2020-12-16 13:45

Do we have to send removeObserver: explicitly for objects that have been added as observers to an NSNotificationCenter before?

I am bit con

4条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-16 14:17

    You always need to remove observers for KVO as well as for Notifications.

提交回复
热议问题