如何在游乐场运行异步回调
// Playground - noun: a place where people can playimport Cocoaimport XCPlaygroundlet url = NSURL(string: " let request = NSURLRequest(URL: url)NSURLConnection.sendAsynchronousRequest(request, queue:NSOperationQueue.currentQueue() {response, maybeData, error in // This block never gets called? if let data = maybeData { let contents = NSString(data:data, encoding:NSUTF8StringEncoding) println(contents) } else { println(error.localizedDescription) }}
println
肥皂起泡泡