As a part of the interview process for Audible, Inc., I was given the following task:
Using the Instagram API, create an iOS app that displays photos tagged with hashtag #selfie. Then implement tap to enlarge feature. Complete as much as you can within one day.
Instagram API is used to request data from Instagram.
I raised an issue on Github - Tag Endpoints: max_tag_id (data still limited to 20 images).
Browse your Instagram #selfie photos with a double click. This was accomplished using Collection Views, Asynchronous Networking (NSURLSession
and Grand Central Dispatch
), and caching with on-disk persistence.
-
Open SelfieBooth.xcworkspace in Xcode 6.1 or later.
-
Build the project Command (⌘) + R, after you choose the type of iOS Simulator.
-
Use pull-to-refresh feature to download update the photos.
-
Long press on the image to set an Instagram like.
-
Single-click (tap) on the image to see an enlarged view and repeat the same to dismiss the selfie.