use*_*291 1 iphone cocoa nsnotificationcenter ios
我无法在apple doc中看到第三个参数对象的解释https://developer.apple.com/library/mac/#documentation/Cocoa/Reference/Foundation/Classes/nsnotificationcenter_Class/Reference/Reference.html
在这样的所有示例中,如何创建一个类来通过Objective-C中的NSNotificationCenter发送和接收事件?它没有
没有人解释它:所以为什么反对:没有?
什么时候不是零?
当你在观看某个物体时,这不是零.
场景:您有两个对象,每个对象通过NSNotificationCenter触发事件.您只想接收objectA的事件.
解决方案:通过NSNotificationCenter进行订阅,并将objectA作为对象参数传递.