Re: height of UITableView with exactly two rows
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