Fifth project of Udacity's iOS Developer Nanodegree.
This project consists of working with Core Data and Flickr API where the app will allow users to add pins on the main map by long press a selected location and each pin will display downloaded public photos around the location. All data (including images) will be persisted.
Technical Approach
MapKit
was used to display maps and pins.Core Data
was used to manage local persistence.- flickr.photos.search was used to get public photos by given coordinates.
URLSessionDataTask
was used for HTTP requestsJSONDecoder
andJSONSerialization
was used for JSON parsing
Screenshots
Main screen with map |
Added pin locations on long press |
Album collection from selected location |
Refreshed album collection |
This project requires an Flickr API key. You can follow this steps:
- Create an app following this link
- Take note of API key
- Edit the flow authentication of created app with these settings:
- App type: mobile
- Permissions: read
- Clone this repository and import into Xcode
- Create a new
Keys.plist
underAssets
folder - Create a new String key called
FlickrApiKey
insideKeys.plist
and paste the API key - Build it with simulator.
Project developed by Márcio Souza de Oliveira.