AceMobileInterview

iOS track

General topic questions

Delegates vs Closures

EasyMost asked

Free section · general topics & algorithms

When do you pick delegate patterns vs completion closures?

Reveal model answer
Delegates suit multi-method ongoing relationships (tableView). Closures suit one-shot results. Avoid retain cycles: weak delegates, weak self captures.
View controller lifecycleApp Store Sandboxing