Skip to content

Latest commit

 

History

History
88 lines (59 loc) · 4.22 KB

README.md

File metadata and controls

88 lines (59 loc) · 4.22 KB

Project 2 - Flix

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

Time spent: 8 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.

The following additional features are implemented:

  • List anything else that you can get done to improve the app functionality!

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. Different ways to implemented the search feature
  2. Resources for designing a better UI in the storyboard

Video Walkthrough

Here's a walkthrough of implemented user stories:

  1. App icon and launch screen

App Icon and Launch Screen

  1. List of movies with poster images, title and overview

List of Movies

  1. Pull to refresh

Refresh

  1. Details view on tap

Details View

  1. Loading indicator

Loading Indicator

  1. Error message activated by network error

Error Message

  1. Tab bar button to collection view

Tab Bar

GIF created with LiceCap.

Notes

  1. An issue arose while implementing the alert. The try again button was not tappable and the function would not be called. The app didn't crash nor was there an error message. After restarting the simulator and Xcode, the button was functional once again.
  2. A warning came up with the alert that I decided to take care of. After adding the alert, making it appear would cause "Presenting view controllers on detached view controllers is discouraged." to be logged in the console. The issue came up because the alert was called by a method that was called in the viewDidLoad method. To resolve this warning, the method call was moved to the viewDidAppear method. The reason this fixed the issue is that the view controller must appear first before more views (such as the alert) appear.

Credits

License

Copyright 2020 David Lara

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.