What is delegation protocol?
Answer / Devesh
A delegation protocol in Objective-C is a design pattern that allows one object to delegate tasks to another object. The first object, known as the delegate, conforms to a specific protocol, which declares a set of optional methods. When an event occurs within the first object, it will call the appropriate method on its delegate, if it has been set.
| Is This Answer Correct ? | 0 Yes | 0 No |
Tell me something about objective-c blocks?
What is a delegation protocol?
Is c and objective c the same?
How to call methods in objective c?
Is objective c superset of c?
Does objective c have multiple inheritance? Why not? How to imitate various inheritance?
What is objective c vs c?
How do you define a protocol?
How to convert nsnumber to nsstring in objective c?
When should you call dealloc method? Is it possible to implement dealloc in arc?
What is the difference between nsdictionary and nsmutabledictionary?
How do I create a bridging header file?