• 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: Resolving bizarre autolayout crashes.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resolving bizarre autolayout crashes.


  • Subject: Re: Resolving bizarre autolayout crashes.
  • From: Alex Zavatone <email@hidden>
  • Date: Wed, 04 Feb 2015 16:08:04 -0500

Thanks Kyle.  The thing that scares me here is that I have no idea why this started failing and why it stopped, so I'm afraid it could stop working at any time without knowing why.

I can see this constraint on the scroll view itself, and I think you hit the nail on the head here.

I'll pass this by the author as we have many other XIB's exactly like this.

We are applying the same constraint in the scroll view's sub view.

I think this started happening when I changed device size in the simulator, or dragged the simulator from one screen to another but still, I'm unsure what caused it to start throwing an exception.

Thanks for your help on this.

Alex

Sent from my iPad. Please pardon typos.

On Feb 4, 2015, at 1:33 PM, Kyle Sluder <email@hidden> wrote:

> 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

_______________________________________________

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


  • Follow-Ups:
    • Re: Resolving bizarre autolayout crashes.
      • From: Ben Kennedy <email@hidden>
References: 
 >Resolving bizarre autolayout crashes. (From: Alex Zavatone <email@hidden>)
 >Re: Resolving bizarre autolayout crashes. (From: Ben Kennedy <email@hidden>)
 >Re: Resolving bizarre autolayout crashes. (From: Alex Zavatone <email@hidden>)
 >Re: Resolving bizarre autolayout crashes. (From: Kyle Sluder <email@hidden>)

  • Prev by Date: Re: Resolving bizarre autolayout crashes.
  • Next by Date: Re: Resolving bizarre autolayout crashes.
  • Previous by thread: Re: Resolving bizarre autolayout crashes.
  • Next by thread: Re: Resolving bizarre autolayout crashes.
  • Index(es):
    • Date
    • Thread