Last active
November 26, 2015 12:34
-
-
Save ezura/07eff3cb5796995bc74a to your computer and use it in GitHub Desktop.
playground で非同期通信をする ref: http://qiita.com/ezura/items/b17fec1240654028d265
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import XCPlayground |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| XCPSetExecutionShouldContinueIndefinitely() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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