Re: Adding Constraints in Code
Re: Adding Constraints in Code
- Subject: Re: Adding Constraints in Code
- From: Thomas Wetmore <email@hidden>
- Date: Mon, 14 Sep 2015 06:32:25 -0400
This looks like you are trying to push both the stack view and the detail view to the left and to the right at the same time, inconsistent with the overall horizontal constraint.
Isn’t the error message indicating that there is something wrong with the provided options? I’d experiment with those options to see what happens.
Should you be using top and bottom instead?
Tom Wetmore
> On Sep 14, 2015, at 5:35 AM, Dave <email@hidden> wrote:
>
> myConstraintsArray = [NSLayoutConstraint constraintsWithVisualFormat:@"H:[StackView]-(<=1)-[DetailView]" options:NSLayoutFormatAlignAllLeft metrics:nil views:myConstraintsViewDictionary];
>
> myConstraintsArray = [NSLayoutConstraint constraintsWithVisualFormat:@"H:[StackView]-(<=1)-[DetailView]" options:NSLayoutFormatAlignAllRight metrics:nil views:myConstraintsViewDictionary];
_______________________________________________
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