I want the screen to show only one tableveiwCell with a headerView. I added a UIView as a title at the top of the UITableView with “size classes” in the storyboard (just drag and drop the UIView at the top of the UITableView), it can be compatible with all devices in this way.
So changing the height of the title bar by restrictions is what I want. but when I try to do this, I cannot set limits for the headerView (Xocde does not allow me to select any restrictions in the storyboard, image 2 below). As shown below.
Any ideas, thanks!
The project code is here: https://github.com/williamhqs/AutoLayoutTableViewHeaderView


Eidt:
, .
, .
UIView *v = self.tableView.tableHeaderView;
CGRect fr = v.frame;
fr.size.height = [UIScreen mainScreen].bounds.size.height -100;
v.frame = fr;
[self.tableView updateConstraintsIfNeeded];