2023-11-09|閱讀時間 ‧ 約 1 分鐘

[MacOS][swift]關閉專案

func applicationShouldTerminateAfterLastWindowClosed(_ sender: NSApplication) -> Bool {
NSApplication.shared.terminate(self)
return true
}





分享至
成為作者繼續創作的動力吧!
此專題是與APP程式設計相關的內容,包含:原生與跨平台。
從 Google News 追蹤更多 vocus 的最新精選內容從 Google News 追蹤更多 vocus 的最新精選內容

發表回應

成為會員 後即可發表留言
© 2024 vocus All rights reserved.