Answers for "ios development http request"

0

ios network request

let url = URL(string: "http://www.stackoverflow.com")!

let task = URLSession.shared.dataTask(with: url) {(data, response, error) in
    guard let data = data else { return }
    print(String(data: data, encoding: .utf8)!)
}

task.resume()
Posted by: Guest on September-14-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language