Created
May 10, 2019 23:06
-
-
Save JeremyXue77/8a35555fae59fdf9dc64ae3cbf722421 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var networkManager: NetworkManager! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
networkManager.getNewMovies(page: 1) { movies, error in | |
if let error = error { | |
print(error) | |
} | |
if let movies = movies { | |
print(movies) | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment