Search code examples
iphoneiosios5delegatesdelegation

iOS Multiple Delegates


I need a couple of my view controllers to know when Persons dictionary is getting changed. I have created a protocol, but as I understand, the delegate property can have only one delegate, and not an array of delegates. I know I can implement this using the NSNotification, but is there any way to do it with delegation? Thanks!


Solution

  • Delegates are meant to be for One to One. For multiple listeners NSNotification is the way to go, as you know.