I want to be able to create a UIButton with an oversized responsive area. I know that one way to do that is to override the hitTest method in a subclass, but how do I insta
The buttonType property is not used anywhere in UIKit, and in your code you could always check -isKindOfClass:, so overwriting +buttonWithType: for this property is rather pointless IMO. Just use
return [[[OversizedButton alloc] initWithFrame:...] autorelease];
(You can override the button type with the undocumented method _setButtonType:.)