0
我創建的應用程序很簡單。該應用只是提醒工作。我有問題如何我的警報始終顯示彈出所有其他應用程序。我試圖代碼,但我警告將隱藏在使用其他應用程序,我想我的警惕這個樣子的警告圖像 我試圖代碼如何始終顯示我的Cocoa應用程序的警報彈出所有其他應用程序?
let myPopup: NSAlert = NSAlert()
myPopup.messageText = "Notification"
myPopup.informativeText = "Hello world"
myPopup.alertStyle = NSAlertStyle.WarningAlertStyle
myPopup.addButtonWithTitle("OK")
myPopup.addButtonWithTitle("Cancel")
myPopup.runModal()
但是當我使用其他應用程序來將其隱藏。 我想要始終顯示警報。 你可以教程代碼示例幫助我嗎?
我只是初學者。我希望作家應用程序提醒簡單。我花了一整天的時間去做,但我做不到。請幫幫我。