I have a subclass of UIButton (MUIButton : UIButton
) i want to call method default like:
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
How can i call it inside my subclass ?
I have a subclass of UIButton (MUIButton : UIButton
) i want to call method default like:
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
How can i call it inside my subclass ?
I think UIButton is not meant for subclassing, it's a class cluster, meaning the type specified actually returns some private subclass of UIButton (which you can't directly subclass).
What is it you want to achieve with subclassing UIButton? Are you sure there is no other way of achieving that? Depending on the answer you can probably find a better solution to the problem at hand.
inheritting UIButton is very unwise , you had better inherit UIControl(or UIView) , or you can use Category of UIButton