Skip to content

Instantly share code, notes, and snippets.

@ezura
Last active November 26, 2015 12:34
Show Gist options
  • Save ezura/07eff3cb5796995bc74a to your computer and use it in GitHub Desktop.
Save ezura/07eff3cb5796995bc74a to your computer and use it in GitHub Desktop.
playground で非同期通信をする ref: http://qiita.com/ezura/items/b17fec1240654028d265
import XCPlayground
XCPSetExecutionShouldContinueIndefinitely()
NSURLConnection.sendAsynchronousRequest(request, queue: NSOperationQueue.mainQueue()) { (response, data, error) -> Void in
何か処理
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment