This app is a bit more complicated since it uses the network and threading to let us search the Giphy API for animated GIFs.
This app has 3rd party dependencies brought in with CocoaPods. Before you begin the lab, follow the installation instructions on their website and run the command pod install.
This will install the dependencies we need for the project, which are specified in the Podfile and are:
- AFNetworking - an asynchronous network library
- Mantle - a JSON binding library
In this lab, you should do a few things:
- Search the Giphy API for GIFs that match search terms and display them in the UITableView inside GASearchResultsTableViewController.
- Display still thumbnails of those animated GIFs.
- Show a full screen version of the animated GIF when you tap on one of them.
The first tab of the app takes the first item from the trending GIFs on Giphy and displays a still version of the first image once the response comes back. This demonstrates how to use AFNetworking to make an asynchronous network query.