Auto height does not work in uiView in swift 3 -


i adjust height according content.
enter image description here

currently, add "height" in each uiview. these 3 uiviews embedded in scrollview.
i set height of "red" color uiview "auto" . if set view auto height , set top, right,bottom,left specifically, got error of "scroll view".

so, fix , add missing constraint, xcode automatically define height of red uiview.

enter image description here

let me explain, i'm doing right add segmented control inside red uiview. under segmented control, there 3 container views.
so, set "yellow" uiview cover these 3 container views.

so, under "yellow" container view, there be...
- 1 container view collection view.
- 2 container view collection view.
- 3 container view collection view.
(i put collection views in each container views. so, there 3 collection view. overlap these 3 container views)
i extend height of red container according collection view content count. if collection view cell more 6 cells, there 3 rows (each row has 2 collection cell).
have no idea of how this.
can me please solve problem?


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -