0

I have 4 UIViews stacked in a UIScrollView.

When any one of the UIViews are tapped, I want that particular view to expand and show some more content and this would mean the sibling views below the selected view has to push themselves down.

I could have used UITableView but there are all kinds of weird stuff happening when you change the row heights dynamically which is why I chose this fallback.

Can I use autoresizingmask to do this ?

Cheers

Jugs
  • 231
  • 5
  • 15

1 Answers1

0

Your question Answer is not so simple,you Need to use Different Logic Means You know how Much Width and Hight your Each view have after Clicking on it and then you can pass the reference of View to setContentSize of Scrollview.here is some tutorial which solved my problem when i was putting some run time data in Scrollview.

link

link

Hope it will be helpfull for you.

Community
  • 1
  • 1
NSCool
  • 229
  • 1
  • 12