Skip to content

Instantly share code, notes, and snippets.

@Nub
Created June 12, 2014 23:27
Show Gist options
  • Select an option

  • Save Nub/a949298ec2ad8088bbd7 to your computer and use it in GitHub Desktop.

Select an option

Save Nub/a949298ec2ad8088bbd7 to your computer and use it in GitHub Desktop.
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x178095270 H:|-(0)-[PagedScrollView:0x147e31190] (Names: '|':UIView:0x1701868d0 )>",
"<NSLayoutConstraint:0x1780952c0 H:[PagedScrollView:0x147e31190]-(0)-| (Names: '|':UIView:0x1701868d0 )>",
"<NSAutoresizingMaskLayoutConstraint:0x178098c40 h=--& v=--& H:[UIView:0x1701864c0(320)]>",
"<NSLayoutConstraint:0x17009e3c0 camImage.height == 0.5625*UIView:0x170187f90.width - 180 (Names: camImage:0x147d0d390 )>",
"<NSLayoutConstraint:0x178c8cd00 UIView:0x170187f90.width == VerticalFlowLayout:0x147e76dc0.width>",
"<NSLayoutConstraint:0x170a8b770 H:|-(0)-[VerticalFlowLayout:0x147e76dc0] (Names: '|':UIView:0x170186e80 )>",
"<NSLayoutConstraint:0x170a8b7c0 H:[VerticalFlowLayout:0x147e76dc0]-(0)-| (Names: '|':UIView:0x170186e80 )>",
"<NSLayoutConstraint:0x170a8d9d0 H:|-(0)-[UIView:0x170186e80] (Names: '|':UIView:0x1781898c0 )>",
"<NSLayoutConstraint:0x170a8da20 H:[UIView:0x170186e80]-(0)-| (Names: '|':UIView:0x1781898c0 )>",
"<NSLayoutConstraint:0x179488660 UIView:0x1781898c0.width == PagedScrollView:0x147e31190.width>",
"<NSLayoutConstraint:0x17189d2e0 H:|-(0)-[UIView:0x1701868d0] (Names: '|':UIView:0x1701864c0 )>",
"<NSLayoutConstraint:0x172893970 H:[UIView:0x1701868d0]-(0)-| (Names: '|':UIView:0x1701864c0 )>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x17009e3c0 camImage.height == 0.5625*UIView:0x170187f90.width - 180 (Names: camImage:0x147d0d390 )>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment