5
मेरे पास एक स्विफ्ट 2.3 प्रोजेक्ट है जिसे मैंने अभी 3.0 स्विफ्ट करने के लिए अपडेट किया है और निम्न कोड टूटा हुआ है।एक्सकोड त्रुटि सदस्य के डेटा टास्क के साथ संदिग्ध संदर्भ (साथ: समापन हैंडलर :) '
let task = URLSession.shared.dataTask(with: request, completionHandler: {
data, response, error in
if error != nil {
print("error=\(error)")
return
}
print("response = \(response)")
let responseString = NSString(data: data!, encoding: String.Encoding.utf8)
print("responseString = \(responseString)")
})
task.resume()
मैं अनजान है कि यह कैसे