How to stop the Observer in NSNotification to called twice?

前端 未结 7 1195
被撕碎了的回忆
被撕碎了的回忆 2020-12-02 20:08

I have an observer of NSNotification which is called twice. I do not know what to do with it.

I googled it but no solution found.

[[NSNo         


        
7条回答
  •  囚心锁ツ
    2020-12-02 20:25

    I had two instances of the same class and it took me some time before I have realised that the notification is not running twice in one instance of that class but twice in two instances.

提交回复
热议问题