In iOS programming, it is common to use structures that act as delegates .
One of them, for example, is UITextFieldDelegate
. This class, according to the documentation , informs the implementer of important events of UITextField
, as if user started typing or completed it.
I understand the use of UITextFieldDelegate
, but not what those delegates are, and why they are needed.
- Is there a more concrete definition?
- Is it a design pattern? An architecture?
- Is it unique to iOS programming or is it implemented in other technologies?
- Is it an implementation of a kind of event-oriented programming?