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

python - Strange behavior using PyQt4's 'pyqtSlot' decorator before another decorator -

c# - UnhandledExceptionMode.ThrowException for AppDomain.UnhandledException -

c# - Process.Kill() returns access denied -