What We’ve Learned

We’ve finally delivered all the goods in this chapter. By creating a UINavigationController and creating a segue from the episode list cells to the player scene, we gave the user a way to select an episode and bring up the player for that episode. By using the prepare(for:sender) method, we were able to use the time just before performing the segue to pass data into the destination view controller, which let us set up the scene with its podcast URL to play and the metadata to show in its UI.

Then, to provide an “add more podcasts” feature, we looked at how to show scenes with modal segues, how they keep the user blocked until dismissed, and how exit segues give us a convenient way to go backwards through previously visited scenes.

Now that we have a functionally complete podcast app, our next challenge is to keep it working. In the next chapter, we’ll look at the debugging features Xcode provides to find and fix problems in our app.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset