What is difference between nsnotification and delegate?



What is difference between nsnotification and delegate?..

Answer / Manish Kumar Prabhakar

NSNotification is a way to broadcast an event from one object to multiple objects, whereas a delegate is a specific object that handles certain tasks for another object. NSNotifications are typically used for more generic events, while delegates are used when there's a one-to-one relationship between the sending and receiving objects.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Apple iOS Interview Questions

Give example scenarios when an application goes into inactive state?

1 Answers  


What skills are required for ios developer?

1 Answers  


Difference between iOS 3 , iOS4, iOS 5, iOS 6, iOS 7 and iOS 8 (What are the new features)

1 Answers  


Who calls the main function of you app during the app launch cycle?

1 Answers  


Compare and contrast the different ways of achieving concurrency in os x and ios.

1 Answers  


So how is the new look different from the old look?

1 Answers  


What is Process?

1 Answers  


Explain me what is fast enumeration?

1 Answers  


What are kvo and kvc?

1 Answers  


What is ios realm?

1 Answers  


Which object is create by uiapplicationmain function at app launch time?

1 Answers  


Explain the difference between cocoa and cocoa touch?

1 Answers  


Categories