• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
UIImageView drawRect not called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

UIImageView drawRect not called


  • Subject: UIImageView drawRect not called
  • From: DKJ <email@hidden>
  • Date: Mon, 1 Dec 2008 18:45:35 -0800

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:
This email sent to email@hidden


  • Follow-Ups:
    • Re: UIImageView drawRect not called
      • From: David Duncan <email@hidden>
  • Prev by Date: Re: Custom NSSlider?
  • Next by Date: Re: best way to add transitions
  • Previous by thread: Re: Shouldn't NSOpenPanel media browser aliases be resolved before type check?
  • Next by thread: Re: UIImageView drawRect not called
  • Index(es):
    • Date
    • Thread