uistackview - XCode: Stack view and constraints -


why need contraints on elements live inside stack view? not idea of stack view stack elements automatically making need of explicit measures added?

well said. stackview height , width content size. sometime cannot how content size ui element has.

for example if have imageview inside stackview , assign image @ runtime. stackview grow imageview. question how much. depends on size of image. there can feel undesired results. fix stackview size using predefined constraints.

also, stackview need constraints position. position stackview inside view of viewcontroller. need constraints positioning our stackview.


Comments

Popular posts from this blog

java - Run spring boot application error: Cannot instantiate interface org.springframework.context.ApplicationListener -

reactjs - React router and this.props.children - how to pass state to this.props.children -

Excel VBA "Microsoft Windows Common Controls 6.0 (SP6)" Location Changes -