Build An iTunes Search App
Coming April 2017…
About this Course
In this course we will be building an app that searches for artists in the iTunes Store and lets users browse albums and tracks. We'll be using the iTunes Search API to put this together and in doing so you'll learn about modeling complex endpoints, constructing URLs with parameters, concurrently downloading images using operation queues, displaying JSON data in a table view and much more
What you'll learn
- - URL parameter encoding
- - Operation queues and operation based tasks
- - Displaying JSON data in a table view
Modeling iTunes Search Results
The iTunes Client we're building is going to get all of its data from the iTunes Search API. Before we start writing code, let's take a second to explore the API, fire off a few requests and understand how the responses are structured. We can use this information to get a head start on building our models
Building the User Interface
Now that we have stubbed data, we can start to build the user interface without writing networking code first. Over the next set of videos, let's build each view that you saw in the demo using modular components.
URLs and Parameter Encoding
To interact with the iTunes Search API, we need to define the data we need in terms of a URL and a request. Unlike the URLs we've used before, this URL will be more complex and contain information that needs to be cleaned up before we can transmit it to the server. Over the next set of videos we're going to explore different parts of the URL that are useful to us and learn how to encode information into a format that's safe for a URL to work with.
Enhancing the iTunes Endpoint
The Itunes enum gets the job done and we could go ahead and use it, but there's a lot missing. Over the next few videos, let's clean up the implementation by using protocols and allow the caller to specify an attribute as well.
Requesting Real Data
So far we've gotten by with using stubbed data in our app but now it's time to replace it with data from the web. Over the next few videos, let's write networking code so that we can fetch data from the iTunes Search API.
Downloading Album Artwork
We've managed to download and display nearly all the information we need in our app but the album artwork is still missing. Over the next few videos we're going to take a look at how we can retrieve this data in the background without affecting the flow of our app. To do this we'll learn about operations and operation queues.
Pasan spends most of his time learning and the rest trying to figure out how to pass that knowledge on to others. It's a hard job but he loves it all the same. You can find him everywhere as @pasanpr