Re: UIView as opposed to UIViewController...
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