Re: Resolving bizarre autolayout crashes.
Re: Resolving bizarre autolayout crashes.
- Subject: Re: Resolving bizarre autolayout crashes.
- From: Kyle Sluder <email@hidden>
- Date: Wed, 04 Feb 2015 12:33:58 -0600
On Wed, Feb 4, 2015, at 12:24 PM, Alex Zavatone wrote:
> Here's the error log:
>
> Error message follows.
> UIView property translatesAutoresizingMaskIntoConstraints)
> (
> "<NSLayoutConstraint:0x16d8e230
> V:[UIScrollView:0x16d8df50(>=1368)]>",
This looks like it might be the culprit. Constraints applied to the
scroll view itself that don't relate to a descendant are considered to
affect the scroll view's size within its superview, not its scrollable
area.
If you are trying to force the scrollable area to be at least a certain
size, you can't constrain the scroll view itself. You need to add a
UIView as a subview, pin its sides to its superview, and constrain
_that_ view's height.
--Kyle Sluder
_______________________________________________
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