Main vs Background on iOS
Dispatch work safely off and onto the main thread.
Two Kinds of Work
Every app juggles two kinds of work: quick UI updates and slower jobs like network calls. Where each runs matters a lot.
The Main Thread Rule
On iOS, all UI changes must happen on the main thread. Touch it from a background thread and the app can crash or glitch.
All lessons in this course
- The New Memory Manager Explained
- Main vs Background on iOS
- Mutable State & Race Conditions
- Debug Freezes & Threading Crashes