I have a pretty simple custom subclass of UIView:
If I call initWithFrame: rect for this class with some non-zero rectangle, it works fine; but when I call initWithFrame: CGRectZero, drawRect is never called, even after I change the view frame to a non-zero rectangle.
Of course, I understand why a view with a zero frame will never call drawRect: call, but why will it never be called even after changing the frame?
Greg maletic
source share