uiview - UIStackView inside scrollView -


i trying put uistackview inside scrollview.

within want following:

  • top view uistackview contains 2 labels.

  • second view custom view remain same size.

  • third view uiview want use add other customuiviews to. in code doing addsubview , view need change size depending on size of subview added it.

  • fourth view 2 labels in stackview.

i have tried setting following: (plus third view's hugging priority higher want grow , shrink depending on size of view added.)

enter image description here

however getting following result:

enter image description here

has had luck adding uistackview scroll view , within stackview having view resize depending on content?

the other option maybe using tableview. though prefer use stack view.


Comments

Popular posts from this blog

java - Static nested class instance -

c# - Bluetooth LE CanUpdate Characteristic property -

JavaScript - Replace variable from string in all occurrences -