Junior — Middle
Can you list the inheritance chain of the UIButton class in the system?
sobes.tech AI
Answer from AI
The inheritance chain of the UIButton class in iOS looks approximately like this:
- NSObject
- UIResponder
- UIView
- UIControl
- UIButton
- UIControl
- UIView
- UIResponder
UIButton inherits from UIControl, which in turn inherits from UIView, UIResponder, and NSObject. This allows UIButton to have properties and methods for display on the screen, handling user events, and basic capabilities of Objective-C objects.