iphone - When using drawRect for UIButton subclass -
When using the drawRect for UIButton subclass, I suppose that whenever asked to pull the highlighted button Does I need to call setNeedsDisplay for my button in my touch event? As far as I can tell there is no straight forward path to the UIButton subclass subclass.
UIButton is a type of front for UIButton for a series of private classes that are not actual class types that are back by the initializers.
Tell you:
UIButton * myButton = [UIButtonTypeRoundedRect] with UIButton button; NSLog (@ "MyButton Type:% @", [MyButton Description]); You will find the type returned in the "UIRoundedRectButton" log, with that problem you will need to extend the "UIRoundedRectButton". It is not possible because it is a private class which is only back in the UI button has come.
Not the only possible returning class on top of that "UIRoundedRectButton", which is all private
In other words, UIButton was created in a manner that is not suitable for expanding is.
Comments
Post a Comment