Hi I have just done a conversion to Swift 3.0 and have had quite a few errors returned. The first one is:
Ambiguous reference to member 'dataTask(with:completionHandler:)'
Found this candidate
Does anyone have a solution?
The code that gives this is:
let task = session.dataTask(with: request) {
        (
        data, response, error) in
        guard let _:Data = data, let _:URLResponse = response  , error == nil else {
            print(data)
            print("error")
            return
        }
        _ = NSString(data: data!, encoding: String.Encoding.utf8)
        //print(dataString)
    }
 
    