Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion iOS 10/SunSetApp/SunSetApp/SunSetApp/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ class ViewController: UIViewController {

@IBAction func buGetSunSet(_ sender: Any) {

let url="https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22\(laCity.text!)%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"
let city = laCity.text!.addingPercentEncoding(withAllowedCharacters: .urlQueryAllowed)
let url="https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20weather.forecast%20where%20woeid%20in%20(select%20woeid%20from%20geo.places(1)%20where%20text%3D%22\(city!)%22)&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"
LoadURL(url: url)

}
Expand Down