Juliang0705 / Flicks

Views the top movies in theaters
0 stars 0 forks source link

week1 #1

Open Juliang0705 opened 8 years ago

Juliang0705 commented 8 years ago

My app for week 1 is completed. Please review /cc @codepathreview

codepathreview commented 8 years ago

:+1: Nice work! The point of this homework was to get a chance to implement a TableView (one of the most common views in iOS) and to work with real data over the network (in this case from the Movies Database API).

A key part of these projects is that you add additional features and tweak the UI / UX because that will provide the most learning opportunities. We encourage you to complete the projects early each week with the required stories and then spend time adding your own UI elements and experimenting with optional extensions that will improve the user experience.

Some small comments:

    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int{
        if let _ = filteredMovies{
            return filteredMovies!.count
        }else{
            return 0
        }
    }

You can rewrite it like this:

    func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
        if let filteredMovies = filteredMovies {
            return filteredMovies.count
        } else {
            return 0
        }
    }

Please put the `and{` at the right positions.

screen shot 2016-01-26 at 10 26 28 pm

To avoid this, you can set 0 for the number of lines of this UILabel in order to display multiple lines.

screen shot 2016-01-26 at 10 36 49 pm

Excellent submission overall! :horse_racing:

We have a detailed Project 1 Feedback Guide which covers the best practices for implementing this assignment. Read through the feedback guide point-by-point to determine ways you might be able to improve your submission. You should consider going back and implementing these improvements as well. Keep in mind that one of the most important parts of iOS development is learning the correct patterns and conventions.

If you have any particular questions about the assignment or the feedback, feel free to reply here or email us at universitysupport@codepath.com.