Moin,
folgende Constraints setze ich:
Alles anzeigen
Folgende Meldung erhalte ich
Alles anzeigen
Ich finde leider meine Fehler nicht. Die App selbst sieht auch gut aus, also scheint es ja irgendwie zu funktionieren. Die Meldungen würde ich aber schon gerne weg haben.
Hat jemand vielelicht eine Idee??
folgende Constraints setze ich:
Quellcode
- addConstraintsWithFormat(format: "H:|[v0]|", views: thumbnailImageView)
- addConstraintsWithFormat(format: "H:|-8-[v0(44)]|", views: userProfileImage)
- addConstraintsWithFormat(format: "V:|[v0]-8-[v1(44)]-30-|", views: thumbnailImageView, userProfileImage)
- addConstraint(NSLayoutConstraint(item: titleLabel, attribute: .top, relatedBy: .equal, toItem: thumbnailImageView, attribute: .bottom, multiplier: 1, constant: 8))
- addConstraint(NSLayoutConstraint(item: titleLabel, attribute: .left, relatedBy: .equal, toItem: userProfileImage, attribute: .right, multiplier: 1, constant: 8))
- addConstraint(NSLayoutConstraint(item: titleLabel, attribute: .right, relatedBy: .equal, toItem: thumbnailImageView, attribute: .right, multiplier: 1, constant: 0))
- addConstraint(NSLayoutConstraint(item: titleLabel, attribute: .height, relatedBy: .greaterThanOrEqual, toItem: self, attribute: .height, multiplier: 0, constant: 20))
- addConstraint(NSLayoutConstraint(item: subTitleLabel, attribute: .top, relatedBy: .equal, toItem: titleLabel, attribute: .bottom, multiplier: 1, constant: 0))
- addConstraint(NSLayoutConstraint(item: subTitleLabel, attribute: .left, relatedBy: .equal, toItem: userProfileImage, attribute: .right, multiplier: 1, constant: 8))
- addConstraint(NSLayoutConstraint(item: subTitleLabel, attribute: .right, relatedBy: .equal, toItem: thumbnailImageView, attribute: .right, multiplier: 1, constant: 0))
- addConstraint(NSLayoutConstraint(item: subTitleLabel, attribute: .height, relatedBy: .equal, toItem: self, attribute: .height, multiplier: 0, constant: 20))
Folgende Meldung erhalte ich
Quellcode
- 2018-03-14 12:26:27.823907+0100 NoStoryboard[26816:8211188] [LayoutConstraints] 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.
- (
- "<NSLayoutConstraint:0x600000096620 H:[NoStoryboard.CustomImageView:0x7ffe69812040]-(0)-| (active, names: '|':NoStoryboard.EventCell:0x7ffe69811db0 )>",
- "<NSLayoutConstraint:0x600000096760 H:[NoStoryboard.CustomImageView:0x7ffe698126c0]-(0)-| (active, names: '|':NoStoryboard.EventCell:0x7ffe69811db0 )>",
- "<NSLayoutConstraint:0x600000096990 H:[NoStoryboard.CustomImageView:0x7ffe698126c0]-(8)-[UILabel:0x7ffe69812910'UV vs. Schwarzlicht Party'](LTR) (active)>",
- "<NSLayoutConstraint:0x6000000968f0 UILabel:0x7ffe69812910'UV vs. Schwarzlicht Party'.right == NoStoryboard.CustomImageView:0x7ffe69812040.right (active)>"
- )
- Will attempt to recover by breaking constraint
- <NSLayoutConstraint:0x600000096990 H:[NoStoryboard.CustomImageView:0x7ffe698126c0]-(8)-[UILabel:0x7ffe69812910'UV vs. Schwarzlicht Party'](LTR) (active)>
- Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
- The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
- 2018-03-14 12:26:27.824866+0100 NoStoryboard[26816:8211188] [LayoutConstraints] 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.
- (
- "<NSLayoutConstraint:0x600000096620 H:[NoStoryboard.CustomImageView:0x7ffe69812040]-(0)-| (active, names: '|':NoStoryboard.EventCell:0x7ffe69811db0 )>",
- "<NSLayoutConstraint:0x600000096760 H:[NoStoryboard.CustomImageView:0x7ffe698126c0]-(0)-| (active, names: '|':NoStoryboard.EventCell:0x7ffe69811db0 )>",
- "<NSLayoutConstraint:0x600000096a80 H:[NoStoryboard.CustomImageView:0x7ffe698126c0]-(8)-[UILabel:0x7ffe69812bf0'8.804 km \U00b7 Holsteinisches...'](LTR) (active)>",
- "<NSLayoutConstraint:0x600000096ad0 UILabel:0x7ffe69812bf0'8.804 km \U00b7 Holsteinisches...'.right == NoStoryboard.CustomImageView:0x7ffe69812040.right (active)>"
- )
- Will attempt to recover by breaking constraint
- <NSLayoutConstraint:0x600000096a80 H:[NoStoryboard.CustomImageView:0x7ffe698126c0]-(8)-[UILabel:0x7ffe69812bf0'8.804 km · Holsteinisches...'](LTR) (active)>
- Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
- The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
- 2018-03-14 12:26:27.826794+0100 NoStoryboard[26816:8211188] [LayoutConstraints] 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.
- (
- "<NSLayoutConstraint:0x608000096da0 H:[NoStoryboard.CustomImageView:0x7ffe675144c0]-(0)-| (active, names: '|':NoStoryboard.EventCell:0x7ffe675101f0 )>",
- "<NSLayoutConstraint:0x608000096ee0 H:[NoStoryboard.CustomImageView:0x7ffe67514710]-(0)-| (active, names: '|':NoStoryboard.EventCell:0x7ffe675101f0 )>",
- "<NSLayoutConstraint:0x608000097110 H:[NoStoryboard.CustomImageView:0x7ffe67514710]-(8)-[UILabel:0x7ffe67514b50'KnallSCHWARZ mit Johann S...'](LTR) (active)>",
- "<NSLayoutConstraint:0x608000097070 UILabel:0x7ffe67514b50'KnallSCHWARZ mit Johann S...'.right == NoStoryboard.CustomImageView:0x7ffe675144c0.right (active)>"
- )
- Will attempt to recover by breaking constraint
- <NSLayoutConstraint:0x608000097110 H:[NoStoryboard.CustomImageView:0x7ffe67514710]-(8)-[UILabel:0x7ffe67514b50'KnallSCHWARZ mit Johann S...'](LTR) (active)>
- Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
- The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
- 2018-03-14 12:26:27.827367+0100 NoStoryboard[26816:8211188] [LayoutConstraints] 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.
- (
- "<NSLayoutConstraint:0x608000096da0 H:[NoStoryboard.CustomImageView:0x7ffe675144c0]-(0)-| (active, names: '|':NoStoryboard.EventCell:0x7ffe675101f0 )>",
- "<NSLayoutConstraint:0x608000096ee0 H:[NoStoryboard.CustomImageView:0x7ffe67514710]-(0)-| (active, names: '|':NoStoryboard.EventCell:0x7ffe675101f0 )>",
- "<NSLayoutConstraint:0x608000097200 H:[NoStoryboard.CustomImageView:0x7ffe67514710]-(8)-[UILabel:0x7ffe67514e30'8.814 km \U00b7 DIE VILLA KLUB...'](LTR) (active)>",
- "<NSLayoutConstraint:0x608000097250 UILabel:0x7ffe67514e30'8.814 km \U00b7 DIE VILLA KLUB...'.right == NoStoryboard.CustomImageView:0x7ffe675144c0.right (active)>"
- )
- Will attempt to recover by breaking constraint
- <NSLayoutConstraint:0x608000097200 H:[NoStoryboard.CustomImageView:0x7ffe67514710]-(8)-[UILabel:0x7ffe67514e30'8.814 km · DIE VILLA KLUB...'](LTR) (active)>
- Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
- The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
- 2018-03-14 12:26:27.828984+0100 NoStoryboard[26816:8211188] [LayoutConstraints] 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.
- (
Ich finde leider meine Fehler nicht. Die App selbst sieht auch gut aus, also scheint es ja irgendwie zu funktionieren. Die Meldungen würde ich aber schon gerne weg haben.
Hat jemand vielelicht eine Idee??