Re: UIView as opposed to UIViewController...
Re: UIView as opposed to UIViewController...
- Subject: Re: UIView as opposed to UIViewController...
- From: Matt Neuburg <email@hidden>
- Date: Sun, 07 Mar 2010 11:47:16 -0800
- Thread-topic: UIView as opposed to UIViewController...
On Sat, 06 Mar 2010 19:57:32 -0700, Jon <email@hidden> said:
>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?
You could be misreading whatever you're reading. Implementing drawRect in a
subclass of UIView is *how* you do custom drawing.
Besides, don't optimize prematurely. Just write your program and then see
what the performance is actually like.
m.
--
matt neuburg, phd = email@hidden, <http://www.tidbits.com/matt/>
A fool + a tool + an autorelease pool = cool!
AppleScript: the Definitive Guide - Second Edition!
http://www.tidbits.com/matt/default.html#applescriptthings
_______________________________________________
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