Re: UITableCellView width decreases when scrolling
Re: UITableCellView width decreases when scrolling
- Subject: Re: UITableCellView width decreases when scrolling
- From: Koen van der Drift <email@hidden>
- Date: Mon, 15 Apr 2013 07:20:13 -0400
On Apr 15, 2013, at 1:27 AM, Luke Hiesterman <email@hidden> 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 (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