• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [iPhone] UITableView cell display bugs ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >[iPhone] UITableView cell display bugs ? (From: WT <email@hidden>)
 >Re: [iPhone] UITableView cell display bugs ? (From: David Duncan <email@hidden>)

  • Prev by Date: Re: Cocoa Graphics Parsing
  • Next by Date: Re: Core Data, NSArraycontrollers and secondary to-many relationships.
  • Previous by thread: Re: [iPhone] UITableView cell display bugs ?
  • Next by thread: How to schedule an application
  • Index(es):
    • Date
    • Thread