gpt4 book ai didi

xcode - 解雇 nsviewcontroller swift 不起作用

转载 作者:搜寻专家 更新时间:2023-10-30 22:24:24 26 4
gpt4 key购买 nike

这是按钮操作:

    @IBAction func readyPressed(sender: NSButton) {

self.dismissController(Hardness)
println(1)
self.performSegueWithIdentifier("manual", sender: self)
}

当我按下按钮时,println 工作,segue 工作,但 NSViewController“Hardness”没有关闭

最佳答案

试试这一行来关闭窗口:self.view.window?.close()

关于xcode - 解雇 nsviewcontroller swift 不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27859873/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com