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: Koen van der Drift <email@hidden>
- Date: Mon, 15 Jul 2013 10:17:06 -0400
On Jul 15, 2013, at 10:01 AM, Roland King <email@hidden> wrote:
> 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.
Thanks.
In the end, I just created the CGRects for both views based on the screen size, and their relative position. I also played with autolayout, but by using something like this:
NSDictionary *viewsDictionary = NSDictionaryOfVariableBindings(_customView, _infoTable);
[self.view addConstraints: [NSLayoutConstraint constraintsWithVisualFormat: @"V:|-0-[_customView]-0-[_infoTable(==88)]-0-|"
options: 0
metrics: nil
views: viewsDictionary]];
I just didn't see anything on the screen, I probably messed up somewhere. So I went with the former solution.
- 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