0
Ich habe ein Fenster DeviceNotFound
in meiner AppDelegate
Klasse.presentViewControllerAsSheet zeigt wie Fenster
class AppDelegate: NSObject, NSApplicationDelegate {
let deviceNotFoundWindowController = NSStoryboard(name: "Main", bundle:nil).instantiateController(withIdentifier: "DeviceNotFoundWindowController") as! DeviceNotFoundWindowController
func test() {
if let loadDataVc = NSStoryboard(name: "Main", bundle:nil).instantiateController(withIdentifier: "LoadDataViewController") as? LoadDataViewController
{
self.deviceNotFoundWindowController.contentViewController!.presentViewControllerAsSheet(loadDataVc)
}
}
}
Wenn ich test
Funktion aufrufen, eine andere ViewController
als Blatt zu zeigen, es ist wie Fenster angezeigt wird. Mein DeviceNotFound
Fenster ist nicht blockiert. Ich kann es bewegen: