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
- (void)downloadWeatherForecast { | |
// constant representing the number of seconds in a day | |
const int kSecondsInDay = 60 * 60 * 24; | |
// the url of the weather api | |
NSString *const kWeatherForecastURL = @"http://api.openweathermap.org/data/2.5/forecast/daily?q=London&mode=json&units=metric&cnt=14"; | |
// create a url request for the weather api url | |
NSURLRequest *request = [[NSURLRequest alloc] initWithURL:[NSURL URLWithString:kWeatherForecastURL]]; | |
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
{ | |
"timezone_offset":"+01:00", | |
"tournament":"Serie A", | |
"guest_team":"AC Milan", | |
"home_squad":[ | |
{ | |
"name":"M. Paolucci", | |
"status":"play", | |
"order":0, | |
"number":9, |