• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Adding Constraints in Code
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Adding Constraints in Code (From: Dave <email@hidden>)

  • Prev by Date: Re: Identifying a specific Mac model
  • Next by Date: Re: API to determine status of System Integrity Protection?
  • Previous by thread: Adding Constraints in Code
  • Next by thread: Re: Adding Constraints in Code
  • Index(es):
    • Date
    • Thread