• 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: Constraints to keep 2 views same height not working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Constraints to keep 2 views same height not working


  • Subject: Re: Constraints to keep 2 views same height not working
  • From: Wim Lewis <email@hidden>
  • Date: Tue, 24 Jan 2017 14:25:22 -0800

On Jan 24, 2017, at 1:42 PM, Steve Mills <email@hidden> wrote:
> This should be easy, but it's not working. There's even a sample in Apple's Auto Layout Guide that shows the same constraints that I'm using (although it's doing widths instead of heights).

You may have already checked for this, but: is "translates autoresize mask to constraints" turned on for any of the views? This trips me up pretty often. The constraints generated that way have a highish priority, so they might be quietly overriding your explicit constraints without causing any conflicts that would show in a log message.

Otherwise, maybe try [theWindow visualizeConstraints:[someView constraintsAffectingLayoutForOrientation:...]].



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


  • Follow-Ups:
    • Re: Constraints to keep 2 views same height not working
      • From: Steve Mills <email@hidden>
  • Prev by Date: Re: C++11 headers missing in /usr/include
  • Next by Date: Command-U keeps showing a touch bar
  • Previous by thread: CTRL-left/right doesn't work in LLDB console
  • Next by thread: Re: Constraints to keep 2 views same height not working
  • Index(es):
    • Date
    • Thread