





Thousands of developers use NSScreencast to stay on top of iOS development.
Video Training for iOS Developers
The iOS landscape is large and changes often. With short, bite-sized videos released on a steady schedule, NSScreencast helps keep you continually up to date.
- Quality content We stress the details. Each screencast is carefully produced in HD quality.
- Team Plans Get access for your whole team. NSScreencast makes for great lunch & learns.
- Any Device Stream on the web, or use one of our apps for tv, iPhone, and iPad.
Keep up with iOS Development
NSScreencast has been releasing a new screencasts regularly for more than 6 years. With short videos you can learn a lot over time without a huge time commitment.
NSScreencast offers the largest collection of iOS development screencasts on the internet. With the range of videos that NSScreencast offers, there is something for people of every skill level.
Bite-sized screencasts on iOS and Mac development.
There
are
2 episodes
with tag
'protocols'
Clear search
You may encounter a scenario where you want to decode some JSON that contains an array of objects that may be of a different type. In this episode we examine such a scenario, where we have a feed that contains an array of posts, but each post object can be of a different kind, such as text, image, or video. We will take a look at how to solve this by introducing a protocol called DecodableClassFamily, and along with a Discriminator that will inform the decoding logic which type it should decode. We'll then take this working example and make a reusable solution using Swift Generics.
In this episode we start building our first table view cells. We then build a protocol to represent Reusable Views, such as UITableViewCells. With this protocol you can supply a simple type reference and the reuse identifier and casting happens for you. Leveraging Swift's protocol extensions allows you to leverage your conventions to write cleaner, safer code.