【发布时间】:2015-03-16 08:09:52
【问题描述】:
我在调试和发布中的完成块有一个奇怪的行为。 例如:
sourceViewController.presentViewController(ccVC, animated: true, completion: { () -> Void in
NSUserDefaults.standardUserDefaults().setBool(true, forKey: kChromeCastInstructionsShown)
NSUserDefaults.standardUserDefaults().synchronize()
println("save bolean")
})
在调试中: println("保存布尔值") 打印字符串 相对而言: println("save bolean") 不打印任何内容
对这种行为有任何想法吗? 有人试验了一个明确的解决方案?
种类 安德烈亚
【问题讨论】:
-
是的,同样的问题!
-
升级到 Xcode 6.3 解决了这个问题。
标签: swift closures completion-block