5 macos xcode nsviewcontroller swift
这是按钮动作:
@IBAction func readyPressed(sender: NSButton) {
self.dismissController(Hardness)
println(1)
self.performSegueWithIdentifier("manual", sender: self)
}
Run Code Online (Sandbox Code Playgroud)
当我按下按钮,println工作,segue工作,但NSViewController"硬度"不关闭
Ale*_*lex -11
请尝试使用
self.dismissViewControllerAnimated(true, 完成: {});
或使用
navigationController.popViewControllerAnimated(true)
如此处介绍的