Home > DeveloperSection > Interviews > What is the difference between delegates and notifications?

Posted on    August-06-2015 11:10 PM

 iPhone iPhone  Ios  Objective C 
Ratings:
 1 Answer(s)
  595  View(s)
Rate this:

Mikki Halpin
Mikki Halpin

Total Post:5

Points:25
Posted on    August-06-2015 11:10 PM

Delegates and Notifications


A delegate uses protocols and creates a has-a relationship between the two classes. One of the other benefits of delegates is that you can return something back to the owning class.Notifications  are more geared towards point to multipoint communication.Delegates create relationships between classes. Notifications are used to send events to one or many classes.we have to use delegate to specified known object.notification for all object.


Modified On Apr-16-2016 02:02:48 AM

Don't want to miss updates? Please click the below button!

Follow MindStick