Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UIImageView drawRect not called



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 put an NSLog call inside it to check.) I've tried sending MySubView setNeedsDisplay messages from all kinds of places, to no avail.

I suspect I'm missing something very simple. Any advice would be appreciated.

dkj
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden

This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.