私は実行時にこのエラーを取得しています:実行時にxcodeレポートの制約エラーが見つかりましたが見つかりませんでしたか?
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7ff70350c8a0 UITableViewCellContentView:0x7ff7058511c0.trailingMargin == UIView:0x7ff705851f00.trailing>
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.
2016-08-29 16:53:12.533 xxxx[7125:4051730] 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:0x7ff705a0aca0 UITableViewCellContentView:0x7ff705853420.trailingMargin == UIView:0x7ff7058546f0.trailing - 10>",
"<NSLayoutConstraint:0x7ff705a0ad90 UITableViewCellContentView:0x7ff705853420.trailingMargin == UIView:0x7ff7058546f0.trailing>"
)
しかし、私はそれが
UITableViewCellContentView取得する場所から確認することができませんでした:0x7ff705853420.trailingMargin == のUIView:
を0x7ff7058546f0.trailingを
IDEで見つけることができません。制約を設定する場所のコードを検索しようとしましたが、私が知る限り、エラーに一致するものは何もありません。
Xcode IDEが表示されないという制約がありますか?
制約を '.xib'/storyboardまたはコードで設定していますか? – xoudini
実行時に設定されたすべての制約を表示するには、ビューデバッガを使用できますが、制約がどこから来るのかを判断するのに役立つとは限りません。どのようにカスタムテーブルビューセルを構築していますか? – jcaron
セルの間隔が正しくないようです。 – VenoMKO