This problem is behind me but in case something like this appears again, I'm 
wondering how others would attempt to resole this type of issue in autolayout 
on iOS.

Configuration
Xcode 5.1.1
iOS 7

In working on modifying a view controller that someone else wrote with an XIB 
that uses autolayout constraints, suddenly the app threw an exception when 
trying to draw the XIB because "Probably at least one of the constraints in the 
following list is one you don't want." And it followed with a list of 5 
NSLayoutConstraints and NSAutoresizingMaskConstraints.

Looking at the UIScrollView to which they applied, I couldn't make heads or 
tails of how the constraints listed in the console translated into the 
constraints on the only UIScrollView in the XIB.

Attempting to revert the VC and the XIB to what was in the repo had no effect 
on resolving the issue.  

Quitting and restarting Xcode had no effect on resolving the issue.

I had to move my changes into an external file, check out a new copy of the 
branch, verify that it no longer threw an exception and then move my changes 
back in.  All in all, a really cumbersome process.

When the problem occurred, the XIB wasn't modified me and any changes I made in 
code were not touching any constraints, so I have no idea how it started in the 
first place.

What bugs me more is that there was no way I could resolve this type of 
autolayout issue aside from ditching everything and checking out a new branch 
from the repo.

How would those of you who are much better versed in autolayout than I go about 
resolving this type of issue that crops up when the XIB with constraints hasn't 
been modified in the first place and there is no code affecting the XIB's 
constraints at all?

Thanks in advance.
Alex

Sent from my iPad. Please pardon typos.
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to