objc-flix is a movies app using the The Movie Database API.
Time spent: 3.5 hours spent in total
The following required functionality is complete:
- 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.
The following optional features are implemented:
- User sees an error message when there's a networking error.
- Movies are displayed using a CollectionView instead of a TableView.
- 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):
Here's a walkthrough of implemented user stories:
-
Challenges when working with collection view flow layout
- At first I had to changed Estimated Size from clicking Collection View in Storyboard from Automatic to Custom
- When I changed it to Custom it ignored my FlowLayout configuration code in viewDidLoad so then I changed the property to None and it finally applied my code and my cells matched the video
-
NSInvalidArgumentException -[NSNull length]: unrecognized selector sent to instance
- Was getting a nil error out of nowhere - after setting breakpoints and further inspecting the data getting returned from moviesDB, I found that one movie had a nil
poster_path
andbackdrop_path
- Changed endpoint from /nowplaying to /upcoming to fix my issue since I wanted to move on to the optionals and the fix for this would have been an nil check
- Below is a screenshot of the error for future reference
- Was getting a nil error out of nowhere - after setting breakpoints and further inspecting the data getting returned from moviesDB, I found that one movie had a nil
List an 3rd party libraries, icons, graphics, or other assets you used in your app.
- AFNetworking - networking task library
Copyright [2020] [German Flores]
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.