Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to add AutoLayout constraints to elements in UITableViewCell

I've got a UITableView and a UITableViewCell inside it. I'm trying to add constraints to a UILabel inside said cell, but all of the options are greyed out for me. There are currently no constraints on anything in the cell. I can add constraints through Editor>Resolve Auto Layout Issues>Add Missing Constraints, but when I do that and run my app I get a whole bunch of constraint errors in the log.

Screenshot of Problems

like image 984
JamEngulfer Avatar asked Dec 29 '25 02:12

JamEngulfer


1 Answers

Is the tableViewCell defined as Style = Custom ?

like image 107
Javier Flores Font Avatar answered Dec 30 '25 16:12

Javier Flores Font



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!