Sobes.tech
Junior — Middle

What is the base class inheritance used when creating a UIWindow object?

sobes.tech AI

Answer from AI

The UIWindow class in iOS inherits from UIResponder, which in turn inherits from NSObject. This basic inheritance allows the window to handle events and interact with the system.

The hierarchy is approximately as follows:

NSObject -> UIResponder -> UIWindow

Thus, UIWindow is a subclass of UIResponder, which enables it to receive events, such as touches.

What is the base class inheritance used when creating… - sobes.tech