How get current keywindow equivalent for multi window SceneDelegate Xcode 11?

后端 未结 6 1068
北海茫月
北海茫月 2020-12-31 22:33

I\'m converting my iOS13 app for iPadOS to SceneDelegate (multi window).

How can I get the current UIWindow from the current SceneDelegate?

I know that a can

6条回答
  •  有刺的猬
    2020-12-31 23:15

    I haven't tried this yet, but you should be able to get all the windows with [UIApplication sharedApplication].windows and then pick if you want to show the snack bar on all of the windows or one window.

提交回复
热议问题