• 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: height of UITableView with exactly two rows
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: height of UITableView with exactly two rows


  • Subject: Re: height of UITableView with exactly two rows
  • From: Kyle Sluder <email@hidden>
  • Date: Fri, 19 Jul 2013 12:49:38 -0700

On Jul 19, 2013, at 9:30 AM, Koen van der Drift <email@hidden> wrote:

>
> The problem I foresee though is that at the time I create the tableView, the dataSource method for the number of rows (= 2) hasn't been called yet, and therefore the table doesn't know what the contentSize will be.

Try calling -layoutSubviews on the table view before querying its contentSize.

>
> An alternative I just thought of could be to create a tableView with three rows, where the top one contains my customView.

Or maybe put it in the header view for that section?

Either way you should definitely check to see what kind of interface this produces for an accessibility user.

--Kyle Sluder
_______________________________________________

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: 
 >height of UITableView with exactly two rows (From: Koen van der Drift <email@hidden>)
 >Re: height of UITableView with exactly two rows (From: Koen van der Drift <email@hidden>)
 >Re: height of UITableView with exactly two rows (From: Roland King <email@hidden>)
 >Re: height of UITableView with exactly two rows (From: Koen van der Drift <email@hidden>)
 >Re: height of UITableView with exactly two rows (From: Koen van der Drift <email@hidden>)
 >Re: height of UITableView with exactly two rows (From: Kyle Sluder <email@hidden>)
 >Re: height of UITableView with exactly two rows (From: Koen van der Drift <email@hidden>)

  • Prev by Date: Threads
  • Next by Date: Re: Threads
  • Previous by thread: Re: height of UITableView with exactly two rows
  • Next by thread: Re: Cocoa-dev Digest, Vol 10, Issue 428
  • Index(es):
    • Date
    • Thread