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: Roland King <email@hidden>
- Date: Mon, 15 Jul 2013 22:01:02 +0800
In many ways. If you are using autolayout then set the height of the view to 88 points (points != pixels). You can use autolayout without storyboards, you can implement your own layout if you aren't using Autolayout. If you actually know your view needs an 88 pixel height then that's pretty easy.
On 15 Jul, 2013, at 9:41 PM, Koen van der Drift <email@hidden> wrote:
> Maybe I should rephrase my question :)
>
> I have two views, one should be pinned to the bottom of the screen with a fixed height of 88 pixels, the other view should take up the rest of the screen.
>
> How can I accomplish this without using a xib or storyboard?
>
> Thanks,
>
> - Koen.
>
>
>
>
>
> On Jul 15, 2013, at 7:02 AM, Koen van der Drift <email@hidden> wrote:
>
>> I'd like to add a tableview with exactly two rows under a custom view. I can do that for one size of screen, and empirically figure out what he height of the table should be and be done with it. But of course that doesn't work anymore when I move to a different size screen or iOS version.
>>
>> So somehow, I need to find find out what the height is of a UITableView with two rows, and then I can calculate the height of the tableview and custom view and position them.
>>
>> Is this a job for auto-layout, or is there another way that I am overlooking?
>>
>> I am not using a xib or storyboards.
>>
>> Thanks,
>>
>> - Koen.
>>
>>
>>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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