You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
One way to solve this is to just check if the string is empty before adding the year to the label's text. While not much of a "networking challenge", oftentimes, networked data may not include all the information you expect, and edge cases, like when the movie's release year is unknown, will ultimately come up.
The text was updated successfully, but these errors were encountered:
The starter code for the Movie Manager, has a bug where a stray dash (
-
) appears for movies without a release year (see last result).The fix just involves changing the line in
SearchViewController
that sets the label's text.cell.textLabel?.text = "(movie.title) - (movie.releaseYear)"
One way to solve this is to just check if the string is empty before adding the year to the label's text. While not much of a "networking challenge", oftentimes, networked data may not include all the information you expect, and edge cases, like when the movie's release year is unknown, will ultimately come up.
The text was updated successfully, but these errors were encountered: