Swift: Delegations and Data Sources
1h 6mIntermediate2018-03-21
Authors

Steven Lipton
VP of Special Projects at Scientific Device Laboratory, Developer
Course details
Have you ever been frustrated getting data from one storyboard scene to another using delegates? If so, then this concise course is for you. Discover how to work with delegates and data sources, two essential—but tricky—concepts that can confuse even seasoned iOS developers. Get the foundation you need to understand delegates and the theory of how they work. View examples demonstrating the steps to build a delegate in both the iOS and watchOS context, and learn how to use a data source in a playground. To wrap up, review the use of delegates and data sources in Apple factory classes.
Learning objectives
Recognize attributes of models.
Differentiate between a protocol, delegate, and data source.
Predict how delegate methods are assigned in the watchOS destination.
Learning objectives
Recognize attributes of models.
Differentiate between a protocol, delegate, and data source.
Predict how delegate methods are assigned in the watchOS destination.
Skills covered
SwiftiOSAppleProgramming LanguagesSoftware DevelopmentDeep Dive (X:Y)
Concepts
0. Introduction
- 01 - Welcome
- 02 - What you should know
- 03 - How to use the exercise files
1. The Basics of Classes and MVC
- 04 - What is a class
- 05 - Model
- 06 - View
- 07 - Controller
2. Delegation
- 08 - Destination view controllers in code
- 09 - Destination view controllers in storyboards
- 10 - Delegates in theory
- 11 - Delegates in iOS code
- 12 - Delegates in iOS storyboards
- 13 - Contexts in watchOS
- 14 - Delegates in watchOS
3. Data Sources
- 15 - Data sources
- 16 - Delegates and data sources in Apple methods
Conclusion
- 17 - Next steps