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.

enter image description here

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.

enter image description here

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 picture below

then, if seeing same orange constraints, click on third constraints button on bottom right , select update frames next picturepicture

try adding datasource see real results on simulator. space on right side disappear if put data. space on left side, instead, default behavior.


Comments

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -