I have a strange behaviour with a completion block in Debug and Release. For example:
sourceViewController.presentViewController(ccVC, animated: true, completion: { () -> Void in
NSUserDefaults.standardUserDefaults().setBool(true, forKey: kChromeCastInstructionsShown)
NSUserDefaults.standardUserDefaults().synchronize()
println("save bolean")
})
In debug: println("save bolean") print string In relase: println("save bolean") print nothing
Any idea about this behaviour? Someone experiment a clear solution?
Kind Andrea