user-123
user-123

Reputation: 884

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!

Upvotes: 2

Views: 340

Answers (1)

Akshay Shah
Akshay Shah

Reputation: 1120

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

Upvotes: 5

Related Questions