• 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
Re: UIView as opposed to UIViewController...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UIView as opposed to UIViewController...


  • Subject: Re: UIView as opposed to UIViewController...
  • From: David Duncan <email@hidden>
  • Date: Sun, 07 Mar 2010 13:08:59 -0800

You've misread. The performance note is that if your view does not need to draw, then you should not implement -drawRect:. A view with an empty -drawRect: method consumes more memory and requires more processing time to display than the same view that does not implement - drawRect: at all.

But if you need to draw, you need to draw. All other methods of getting content into a UIView (or more specifically the view's CALayer) consume similar processing time in most cases.

--
David Duncan @ My iPhone

On Mar 6, 2010, at 6:57 PM, Jon <email@hidden> wrote:

I get indications from reading that you shouldn't really subclass UIView in general or to do routine things, and that any time you implement drawRect in the subclass of a UIView, you are taking a performance hit compared to doing some drawing in other ways?
_______________________________________________

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


References: 
 >UIView as opposed to UIViewController... (From: Jon <email@hidden>)

  • Prev by Date: Re: Hot to move focus to a button?
  • Next by Date: Using audio file services to extract ID3 tags from an incomplete mp3 payload.
  • Previous by thread: Re: UIView as opposed to UIViewController...
  • Next by thread: Re: UIView as opposed to UIViewController...
  • Index(es):
    • Date
    • Thread