junioriOS

What is delegation pattern in iOS?

Updated May 6, 2026

Short answer

Delegation allows one object to communicate with another.

Deep explanation

A delegate protocol defines methods, and another class implements them.

Real-world example

UITableView uses delegation for handling interactions.

Common mistakes

  • Strong reference causing retain cycles.

Follow-up questions

  • Why use protocols for delegation?
  • Difference between delegate and closure?

More iOS interview questions

View all →