I have independently encountered the same scenario and gotten the same
results. The documentation suggests that if you call setNeedsDisplayInRect:,
drawRect: will get called. Also, I have put a symbolic breakpoint on
-[UIImageView drawRect:], and it does get called sometimes, but seemingly
not
On Dec 1, 2008, at 6:45 PM, DKJ wrote:
I have a subclass of UIImageView, MySubView, which is instantiated
and added as a subview in the viewDidLoad method of a
UIViewController. MySubView displays a picture without difficulty
when its image property is set in its initWithFrame method. But
I have a subclass of UIImageView, MySubView, which is instantiated and
added as a subview in the viewDidLoad method of a UIViewController.
MySubView displays a picture without difficulty when its image
property is set in its initWithFrame method. But its drawRect method
is never called. (I