阅读背景:

如何避免添加多个NSNotification观察者?

来源:互联网 

Right now the API doesn't seem to provide a way to detect if an observer has already been added for a particular NSNotification. What's the best way to avoid adding multiple NSNotification observers other than maintaining a flag on your end to keep track? Has anyone already created a category to facilitate this?Right now the API doesn't seem to provide a way




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: