Tell us what's the difference between using a delegate and notification?
Submitted by: MuhammadBoth are used for sending values and messages to interested parties. A delegate is for one-to-one communication and is a pattern promoted by Apple. In delegation the class raising events will have a property for the delegate and will typically expect it to implement some protocol. The delegating class can then call the _delegate_s protocol methods.
Notification allows a class to broadcast events across the entire application to any interested parties. The broadcasting class doesn't need to know anything about the listeners for this event, therefore notification is very useful in helping to decouple components in an application.
Submitted by: Muhammad
Notification allows a class to broadcast events across the entire application to any interested parties. The broadcasting class doesn't need to know anything about the listeners for this event, therefore notification is very useful in helping to decouple components in an application.
Submitted by: Muhammad
Read Online UX Designer Job Interview Questions And Answers
Top UX Designer Questions
☺ | Tell Us What Do You Do When There’s Not Enough Time To Do Research? |
☺ | Tell us what are cards in mobile design? Why are they good and when is the best time to use them? |
☺ | Tell me what is the best search pattern for mobile phones? |
☺ | Explain me how can designers leverage audio to enhance user experience? |
☺ | Tell us what is onboarding and why is it so important for mobile design? |
Top Designing Categories
☺ | Web Designing Interview Questions. |
☺ | 3D Maya Interview Questions. |
☺ | Textile Dyeing Specialist Interview Questions. |
☺ | Fashion Designer Interview Questions. |
☺ | Physical Product Designer Interview Questions. |