ios8 - Can't set constraints of UItableView's tableHeaderView height by autolayout in Storyboard -


i want screen shows 1 tableveiwcell headerview.i added uiview header view on top of uitableview "size classes" in storyboard(just drag uiview on top of uitableview), can compatible devices screen size in way.

so change header view's height constraints want to. when try that, cant set constraints headerview(xocde doesn't enable me select constrains in storyboard, image 2 below). below.

any ideas, thanks!

the project code here: https://github.com/williamhqs/autolayouttableviewheaderview

screenshot

enter image description here

eidt: seems still can't set in storyboard.

then have change table header view's frame code update constraints.

uiview *v = self.tableview.tableheaderview; cgrect fr = v.frame; fr.size.height = [uiscreen mainscreen].bounds.size.height -100; v.frame = fr; [self.tableview updateconstraintsifneeded]; 

i think uiview doesn't have superview not showing constraints view.


Comments

Popular posts from this blog

javascript - ScrollTo Effect (href to div) -

javascript - ng-class not responding to change in model in Angular? -

javascript - document.registerElement extending HTMLInputElement prototype while using custom tag name to avoid implicit browser style -