Flix is a movies app using the The Movie Database API.
Time spent: 8 hours spent in total
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):
- Different ways to implemented the search feature
- Resources for designing a better UI in the storyboard
Here's a walkthrough of implemented user stories:
- App icon and launch screen
- List of movies with poster images, title and overview
- Pull to refresh
- Details view on tap
- Loading indicator
- Error message activated by network error
- Tab bar button to collection view
GIF created with LiceCap.
- 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.
- 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.
- AFNetworking - networking task library
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.