Nested closures does not like argument list
问题 A UIView needs to change a warning label depending on the completion handler of a custom control: voucherInputView.completionHandler = {[weak self] (success: Bool) -> Void in self?.proceedButton.enabled = success self?.warningLabel.alpha = 1.0 if success { self?.warningLabel.text = "Code you entered is correct" self?.warningLabel.backgroundColor = UIColor.greenColor() } else { self?.warningLabel.text = "Code you entered is incorrect" self?.warningLabel.backgroundColor = UIColor.orangeColor()