Skip to content

rcholic/CodePath-FlicksMovie

Repository files navigation

Project 1 - Flicks Movie

Flicks Movie is a movies app using the The Movie Database API.

Time spent: 8 hours spent in total

User Stories

The following required functionality is completed:

  • User can view a list of movies currently playing in theaters. Poster images load asynchronously.
  • User can view movie details by tapping on a cell.
  • User sees loading state while waiting for the API.
  • User sees an error message when there is a network error.
  • User can pull to refresh the movie list.

The following optional features are implemented:

  • Add a tab bar for Now Playing and Top Rated movies.
  • Implement segmented control to switch between list view and grid view.
  • Add a search bar.
  • All images fade in.
  • For the large poster, load the low-res image first, switch to high-res when complete.
  • Customize the highlight and selection effect of the cell.
  • Customize the navigation bar.

The following additional features are implemented:

  • Activity Indicator used when user searches in the search bar
  • Animate showing/hiding the bottom navigation bar and UILabel depending on the scroll view's state (e.g. begin dragging) in the MovieDetailViewController

Video Walkthrough

Here's a walkthrough of implemented user stories:

Switch between Views

Notes

  • I originally created two UIViewController classes for listing movies of Now Playing and Top Rated, but I noticed that more than 98% of the code is identical:

    To keep the code less redundant, I decided to do a huge refactoring - creating a generic MovieListViewController class that can be used for both Now Playing and Top Rated. It turned out to be a very nice design - saving me an entire class of code (approximately 200 LOC!)

  • I created a custom tab bar controller that is added as the RootViewController to the key window, which is a nice adventure that works very well 🎉

License

The MIT License Copyright (c) [Tony Wang] https://github.com/rcholic/CodePath-FlicksMovie

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

CodePath Week 1 Project: Flicks Movie in iOS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published