What is a delegate? Can you retain delegates?
Answer / Manorma Sharma
A delegate is an object that adopts a specific protocol and is responsible for handling certain events or actions. In Objective-C, delegates should not be retained. Instead, they adopt the relevant protocol and implement its methods.
| Is This Answer Correct ? | 0 Yes | 0 No |
What happens with the objects if the array is released?
What is the protocol in objective c?
Is objective c garbage collected?
Is objective c open source?
Who calls dealloc method?
What is the main difference between function calls and messages?
Is reference counting garbage collection?
Can we have multiple uiwindows in ios?
Explain what is data encapsulation in objective-c?
What is a class property?
How to declare global variable in objective c?
What are the differences between copy and retain?