Re: [iPhone] UITableView cell display bugs ?
Re: [iPhone] UITableView cell display bugs ?
- Subject: Re: [iPhone] UITableView cell display bugs ?
- From: WT <email@hidden>
- Date: Tue, 21 Jul 2009 14:27:38 +0200
On Jul 20, 2009, at 5:03 PM, David Duncan wrote:
On Jul 20, 2009, at 1:35 AM, WT wrote:
I'm trying to reuse (with some modifications)
UITableViewCellStyleSubtitle cells, which have two left-aligned
labels. I want to have both labels and add a right-aligned text
field. All three views must be as wide as roughly half the
available content view width.
In order to do what you want you must subclass UITableViewCell and
override layoutSubviews to do your layout. What is happening is your
adding and moving around views before this layout has occurred, and
then the default layout mechanism is resetting them. Your
layoutSubviews override should call [super layoutSubviews] first.
Aha! So that's the trivial part I was missing. Thank you, David.
_______________________________________________
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