Answers for "network request ios"

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 "network request ios"

Code answers related to "Swift"

Browse Popular Code Answers by Language