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
Post a Comment