Vote count:
0
I have a UICollectionViewCell in storyboard that has a UIImageView inside of it.
The UICollectionViewCell size is width: 189, height: 239 . The ImageView has the following constraints:
Trailing Space to cell = 31
Leading Space to cell = 31
Bottom Space to cell = 25
Top Space to cell = 31
I receive the following error when running:
2014-11-28 19:53:33.934 TrophyMania[1585:35698] 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) ( "", "", "" )
Will attempt to recover by breaking constraint
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger. The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in may also be helpful.
I tried changing the leading/trailing values in all kinds of ways (tried even/odd numbers) with no success. What is causing this?
Autolayout is complaining about leading/trailing space for UIImageView
Aucun commentaire:
Enregistrer un commentaire