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

matlab - error with cyclic autocorrelation function -

django - (fields.E300) Field defines a relation with model 'AbstractEmailUser' which is either not installed, or is abstract -

c# - What is a good .Net RefEdit control to use with ExcelDna? -