1

I have used UIStackView in UITableViewCell to show additional cards for a primary card in following screen, screen for primary and additional cards enter image description here

Additional cards of a primary card can collapse/expand by touching bar with text "ADDITIONAL CARDS".

It was working fine if additional cards are less then screen size, in case of additional card more then screen size, tableview become scrollable, then on expanding/Collapsing additional cards, content of tableview goes out of screen.

content of uitableview goes out of screen

enter image description here

Suneel Kumar
  • 1,650
  • 2
  • 21
  • 31
Ali Murad
  • 9
  • 1
  • 4
  • Why are you preferring `uistackview` here? Any specific reasons? – iPeter Sep 21 '17 at 14:13
  • What is the issue, though? You have too many rows for your screen. . . And this doesn't seem like a good design. When the sections are expanded, you need to reload your table with a reconfiguration. – Shades Sep 21 '17 at 14:13
  • but stackview should expand downward... – Ali Murad Sep 21 '17 at 14:15
  • When you are expanding to show your stack view, you need to tell the tableview that you are resizing that row; you can also make sure to reposition the tableview to show the top/middle/bottom of your row so you can control how scrolling happens. – ekscrypto Sep 21 '17 at 14:41

0 Answers0