我需要几个 View Controller
来了解Persons字典
何时发生更改。
我创建了一个协议(protocol),但据我了解,委托(delegate)属性只能有一个委托(delegate),而不是一组委托(delegate)。
我知道我可以使用 NSNotification
来实现这一点,但是有什么方法可以使用 delegation
来实现这一点吗?
谢谢!
最佳答案
委托(delegate)是一对一的。
如您所知,对于多个监听器,NSNotification
是最佳选择。
关于iphone - iOS 多个委托(delegate),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14036708/