0

Try to download a piece of data from internet with the following line:

var totalData: NSData?
totalData = NSData(contentsOfURL: url!)

where url is

http://www.omdbapi.com/?t=Annie+Hall&y=&plot=short&r=json

but totalData become nil. Any idea why? It happens only in Xcode 7, not before.

rmaddy
  • 307,833
  • 40
  • 508
  • 550
János
  • 29,667
  • 30
  • 151
  • 300

0 Answers0