Modal Segues

Of course, once we have something that works, our first thought as developers often is how to make it better. One obvious limitation of our app thus far is that it only loads a single default podcast feed. Since we already built the table with the expectation that there can be many feeds (one per table section), let’s add the ability to do that. Along the way, we’re going to see a very different kind of navigation.

In the Project Navigator on the left, add a new file. Use the Cocoa Touch Class template, make it another subclass of UIViewController, and call it AddPodcastViewController. Go ahead and delete the stubbed-out methods like viewDidLoad(), since we won’t need them.

Adding to the Navigation Bar

In Main.storyboard, grab ...

Get iOS 10 SDK Development, 1st Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.