2

How to create UIStackview programmatically? Is there any way to modify stack count dynamically?

Vinu David Jose
  • 2,569
  • 1
  • 21
  • 38
  • 2
    http://stackoverflow.com/questions/30728062/add-views-in-uistackview-programmatically – Sudhir May 10 '16 at 13:05
  • Have a look here on how to create the stackview: https://riptutorial.com/ios/example/4534/create-a-horizontal-stack-view-programmatically For modifying the stackview dynamically i suggest you use the UIView.isHidden property, then you dont have to actually remove the view from the stackview. Have a look here on how to: https://stackoverflow.com/questions/46326302/uistackview-hide-view-animation – Andreas Grahn Jan 29 '20 at 07:57

1 Answers1

-3

please read a tutorial from this: http://www.appcoda.com/stack-views-intro/

brianha289
  • 338
  • 1
  • 8