Learn about the main UI thread and the importance of not using it for long-running operations.
- When using apps on our iPhone or iPad,…we expect them to respond properly, without delays.…If you wanna create responsive apps,…we must respect one rule, only do as much work…on the main thread as needed, move everything else…to a background thread.…The main thread is reserved for UI-related tasks,…long-running operations such as synchronous…network calls or file io, shouldn't run on the main thread.…Otherwise, we're taking away time…from executing UI-related tasks.…
Thus, our application becomes sluggish.…Animations and scrolling won't be that smooth…as they should be or the user interface…simply stops responding to touches.…We'll start with an example of such an unresponsive app,…if you wanna follow along with me,…you can find the project in the exercise files,…chapter five, 5.1, begin.…Now, let's open up the project.…The app has a simple user interface,…it consists of a single, UI collection view controller.…
Each collection view cell contains an image view.…We're going to populate these image views…with photos, downloaded from the internet.…
- Unified Modeling Language (UML)
- Use case, class, and sequence diagrams
- App state preservation and restoration
- Fundamental architectural design patterns
- Model-view-controller (MVC) and model-view-presenter (MVP)
- Implementing one-way binding
- App stage changes
- Building responsive apps
- SOLID principles
- Exchanging information between apps
- Optimizing your apps to avoid excessive CPU usage
Skill Level Intermediate
What you should know1m 5s
1. UML Basics
2. The iOS App Life Cycle
3. Fundamental Architectural Design Patterns
4. App State Transitions
5. Building Responsive Apps
6. The SOLID Principles
7. Communication between Apps
8. Efficiency and Performance
Optimizing for performance3m 19s
Next steps1m 14s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.