ios - Get UIWindow without using AppDelegate -


I need to add a view directly to the window. I can access it through the UDIpplication on the AppDelegate Window Object I can do I intend to make this code as reusable as possible, even though it makes the method unusable. How can I use the UI window program without using the AppendageGate?

I am coding in Swift but the examples of objective-C can also be useful.

There is a reference to the current window of any view.

In a UIViewController:

  self.view.window  

Comments

Popular posts from this blog

c# - SignalR: "Protocol error: Unknown transport." when navigating to hub -

c# - WPF Expander overlay used in ItemsControl -

class - Kivy: how to instantiate a dynamic classes in python -