Open SenyangZhuang opened 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.
if let
to unwrap variables :+1: movies
when declare like this var movies = [NSDictionary]()
so you can use it anywhere without unwrapping. By this way, the function numberOfRowsInSection
will be simpler, just use return movies.count
.`and
{` at the right positions. For example: func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int{
if let movies = movies{
return movies.count
}else{
return 0
}
}
// You can rewrite like this:
func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
if let movies = movies {
return movies.count
} else {
return 0
}
}
UITableView
overlaps the StatusBar
:confused: 0
for the number of lines of this UILabel
in order to display multiple lines.
Notice: Please update the time spent
in the README.
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.
Please Review. /cc @codepathreview