Alan Taylor
Alan Taylor

Reputation: 493

How to make an image with the contents of a UIScrollView?

I have a UIScrollView that changes in height as items are added to it. I want to be able to make an image that is as tall as the scrollview at the time and contains its contents. All I have been able to find online is something that gets me an image of what is currently on the screen.

Has anyone tackled this problem before? I'm looking for either a snapshot of the UIScrollView, or a tall image that I can add snapshots to to build the image.

Thanks!

Upvotes: 1

Views: 939

Answers (1)

Janak Nirmal
Janak Nirmal

Reputation: 22726

Please refer this solution

It does what you want.

Upvotes: 1

Related Questions