On Apr 15, 2013, at 1:27 AM, Luke Hiesterman <luket...@apple.com> wrote:

> In general, if you want to put custom stuff in a cell, you should do it by 
> adding views - like labels, image views, etc. Only if you find a scrolling 
> performance problem and only if via profiling analysis you can show that the 
> performance problem is related to having too many views should you think 
> about flattening the view hierarchy by using -drawRect.
> 
> If you stick to this strategy your life will likely be much simpler.

The reason I was using drawRect is that my cell contains some text, plus a 
small graph (a few changing lines, so I cannot use an static image) at the 
bottom. Therefore I was using CoreGraphics, and I decided then to also draw the 
strings that way.  

Even if I use labels for the strings (which I agree is much easier and 
customizable), then I still would need a subview for the bottom half of my 
contentView to draw in the graph. Unless there is another solution?

- Koen.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to