ios - How to build a dynamic UI in Swift/Xcode? -


i have build app need display ui elements according info database.

i have tabelview custom cell has label , have text there database. works. in database each cell store text , have column other ui elements. example if column has 1 have display button under label, if column stores 2 have display datapicker under label. 3 - switch, 4 - slider, 5 etc.

is solution put ui elements in prototype cell in stack view, set height dynamic , display (hide = true/false) proper ui element?

but if have 10-12 different ui elements can become messy , long. what's best solution this?

make empty view place element depending on 1 or 2 or 3 etc. method place specific button, picker or there ui faster way


Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -