On Jul 15, 2013, at 10:01 AM, Roland King <[email protected]> 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 protected])

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to