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

sql - Find last match with latest inserted name in table -

c# - XML serialize base class without knowing derived class -

ios - Invalid IPA: missing embedded provisioning profile. Are you sure this is an ad hoc? -