/flix

Primary LanguageObjective-C

Project 2 - Flix

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

Time spent: 10 hours spent in total

User Stories

The following required functionality is complete:

  • User sees an app icon on the home screen and a styled launch screen.
  • User can view a list of movies currently playing in theaters from The Movie Database.
  • Poster images are loaded using the UIImageView category in the AFNetworking library.
  • User sees a loading state while waiting for the movies API.
  • User can pull to refresh the movie list.
  • User sees an error message when there's a networking error.
  • User can tap a tab bar button to view a grid layout of Movie Posters using a CollectionView.

The following optional features are implemented:

  • User can tap a poster in the collection view to see a detail screen of that movie
  • User can search for a movie.
  • All images fade in as they are loading.
  • User can view the large movie poster by tapping on a cell.
  • For the large poster, load the low resolution image first and then switch to the high resolution image when complete.
  • Customize the selection effect of the cell.
  • Customize the navigation bar.
  • Customize the UI.
  • User can view the app on various device sizes and orientations.
  • Run your app on a real device.

The following additional features are implemented:

  • User can browse popular movies in the collection view.
  • User can search for any movie in TMDB.
  • User can favorite and view favorited movies.

Please list two areas of the assignment you'd like to discuss further with your peers during the next class (examples include better ways to implement something, how to extend your app in certain ways, etc):

  1. Change the CollectionView tab of the app to filter based on genre, instead of only displaying the same movies as the Now Playing tab.
  2. Add a list of locations in which each movie can be watched, such as nearby theaters.

Video Walkthrough

Here's a walkthrough of implemented user stories:

Now Playing:

Browse:

Favorites:

GIF created with EZGif.com.

Notes

Describe any challenges encountered while building the app.

  • UIActivityIndicatorView was not displaying when fetching movie data because it was placed below the movie cells in the table, which did not show up on screen.
  • UIActivityIndicatorView took up space in the view instead of popping up, which was resolved by moving it outside of the TableView.
  • App crashed upon certain searches because some movies had null poster or backdrop links, which was resolved by checking if it was null.

Credits

List an 3rd party libraries, icons, graphics, or other assets you used in your app.

License

Copyright 2021 Felianne Teng

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.