Code Monkey home page Code Monkey logo

itunesmoviebrowser's Introduction

iTunesMovieBrowser

iTunes Movie Browser sample app for SalesForce

What this demo project comes with:

  1. provides movie search results in a collection view grid

  2. each search result shows the movie name, the year + the director and the poster. From what I could tell, ITMS doesn’t return back a “shortDescription” field reliably nor is it listed in the current documentation. The only descriptive text for each movie is a long paragraph.

  3. There’s a detail view that appears when touching each search result.

  4. Gold star buttons in the bottom right of each search result allows the user to toggle favorite status.

  5. Favorite movies (which persist across app launches) appear in the second tab, which is a view controller derived from the base Search Results “ViewController”

  6. And the gold star buttons are toggled depending on if they are in the list of favorited movies.

  7. I support all orientations for iPad and Portrait only for iPhone.

  8. If any errors happen in terms of getting data or pictures from remote servers, I throw up an Alert.

  9. I did add German localization.

  10. The simple caching scheme I did for images (in Swift) originally came from my 500pxDemoBrowser repo found at https://github.com/dautermann/500pxDemoBrowser.

#Current known issues:

  1. The movie poster/thumbnail service (which is at http://is2-ssl.mzstatic.com and not hosted by Apple) doesn't always respond quickly, so you might see a white background before the image displays (and is cached). I could/should replace this with a "loading" indicator.

  2. Summaries (via “shortDescription”) don't always get sent back in the movie information sent back by ITMS. There is a “longDescription”, though, I’d love to figure out how to summarize it down to a short description, or I’d like to figure out what magic I need to do in the not-super-well-documented API to get the short description to be returned.

  3. I had a whole bunch of Unit Tests I wanted to write (e.g. valid movie objects, bogus dates, etc.) but ran out of time. If I’m allowed to do a revision (which I’m likely to do on my own anyways), I’ll definitely add a few! I also recently did some public source code incorporating remote server stubbing (e.g. OHHTTPStubs), and this can be seen at https://github.com/dautermann/GMWeatherSample

  4. Long descriptions in the detail view controller don't always start at the very top position, despite me setting the content offset to zero.

Wish I had more time to invest in:

  • I’m using a public “average color” UIColor extension to try to decide whether to draw light or dark text over a dark or light background, but it doesn’t seem to be behaving perfectly.

  • Using size classes or something to make the collection view cells dramatically bigger for iPad versus iPhone, as well as sizing the detail view's movie poster view even better.

itunesmoviebrowser's People

Contributors

dautermann avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.