Slide 85
Slide 85 text
NSURLSession.sharedSession().dataTaskWithURL(NSURL(string: url)!,
completionHandler: {data, response, error in
…
dispatch_async(dispatch_get_main_queue(), {
let message = NSString(data: data!, …)! as String
let alert = UIAlertController(…, message: message, …)
alert.addAction(UIAlertAction(title: "OK", …))
self.presentViewController(alert, …)
})
}).resume()
• ϥϜμࣜͷ෦ϝΠϯεϨουͰͳ͍
• ΞϥʔτΛग़͍͕ͨ͠མͪͯ͠·͏
/463-4FTTJPOΛͬͨϦΫΤετ