//点击红色关闭按钮退出程序
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}
image.png
在配置文件里面添加Application is agent (UIElement) 并设置他的值为true即可
//点击红色关闭按钮退出程序
func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
return true
}
image.png
在配置文件里面添加Application is agent (UIElement) 并设置他的值为true即可
本文标题:macOS 点击关闭按钮立即退出程序&Dock上不显示icon的
本文链接:https://www.haomeiwen.com/subject/pnoafctx.html
网友评论