Can delegates be retained?
Answer / Gaurav Khare
In Objective-C, delegates can be retained by setting their delegate property using `self` or by implementing the `retainDelegate` property on the delegate protocol. Retaining delegates helps prevent them from being deallocated before they have a chance to handle events.
| Is This Answer Correct ? | 0 Yes | 0 No |
Mention whether nsobject is a parent class or derived class.
What does the gc () method?
Is objective c compiled?
What is difference between method and constructor?
What is id?
Is method and function same?
How different is objective c from swift?
What is a delegate? Can you retain delegates?
What is the difference between class and category?
What is nonatomic and strong in objective c?
What does mean in objective c?
What is the difference between atomic and nonatomic synthesized properties?