appsome / AccordionView

Simple accordion view in Cocoa Touch
Other
144 stars 38 forks source link

Resize scrollview to accommodate contents #22

Closed RohiniCarlson closed 9 years ago

RohiniCarlson commented 9 years ago

Hi! II'm pretty new to IOS and think this is really great, so thanks a lot!! I have a small problem (or maybe I'm using this incorrectly). The sections (views) I'm adding to the accordion view are quite large (height wise) and I would really like the underlying scroll view to expand in order to fit them. Typically on the lines of scrollView.contentSize = CGSizeMake(scrollView.frame.size.width, newHeightForScrollView), where newHeightForScrollView is the total height of all headers and views. Right now, I cannot completely see the contents of the last section even when I scroll down skarmavbild 2015-04-23 kl 01 12 54 . A response from you would be really appreciated!! Cheers!

RohiniCarlson commented 9 years ago

I think the issue is that my textview is not resizing properly. Checking into it. So sorry for the bother.