uitableview - Autolayout a view to take up all space available -
i trying setup tableview (or view) inside view controller using auto layout. want view take entire space available, configurations.
i have tried sorts of things, tried searching solutions, haven't found straight forward way achieve this.
is possible? if yes, can me giving pointers?
adding more details:
attached screenshot tableview embedded within tabbar controller item. have 4 pins sides, distance 0, , priority 1000.
but, can see orange lines, looks missing constraints. missing?
also, when run on iphone simulator, table view doesn't render had wished. here's screenshot.
the table view doesn't extend sides, , margins different.
in storyboard, select tableview , add 4 pin constraints. 1 edge parent view. follow picture below , ensure constrain margins
unchecked
then, if seeing same orange constraints, click on third constraints button on bottom right , select update frames
next picture
try adding datasource see real results on simulator. space on right side disappear if put data. space on left side, instead, default behavior.
Comments
Post a Comment