Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- let URL = "https://raw.githubusercontent.com/tristanhimmelman/AlamofireObjectMapper/f583be1121dbc5e9b0381b3017718a70c31054f7/sample_array_json"
- Alamofire.request(URL).responseArray { (response: DataResponse<[Forecast]>) in
- let forecastArray = response.result.value
- if let forecastArray = forecastArray {
- for forecast in forecastArray {
- print(forecast.day)
- print(forecast.temperature)
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement