我只想將UILabel
居中放在我的UITableViewCell
中。 我設置了以下限制:UITableViewCell約束問題
- 尾隨空間:10
- 領先的空間:10
- 頂部空間:10
對於一些我收到此錯誤的細胞:
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. ( "", "", "" )
而標籤似乎是關閉的細胞(細胞是空的)。
這裏是限制什麼樣子:
任何想法?
你設置高度約束的標籤嗎?然後可能請從xib – jay
共享約束的屏幕截圖(全部應該展開)您需要設置高度約束。 – darshan
可以請你分享你的項目或一些代碼? –