• 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: David Duncan <email@hidden>
  • Date: Mon, 20 Jul 2009 08:03:08 -0700

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.


--
David Duncan
Apple DTS Animation and Printing

_______________________________________________

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


  • Follow-Ups:
    • Re: [iPhone] UITableView cell display bugs ?
      • From: WT <email@hidden>
References: 
 >[iPhone] UITableView cell display bugs ? (From: WT <email@hidden>)

  • Prev by Date: Re: [iPhone] get iPhone's IP address...
  • Next by Date: Open Recent menu - how to populate it?
  • Previous by thread: Re: [iPhone] UITableView cell display bugs ?
  • Next by thread: Re: [iPhone] UITableView cell display bugs ?
  • Index(es):
    • Date
    • Thread