开发者

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

开发者 https://www.devze.com 2023-03-10 14:26 出处:网络
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

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 befo开发者_开发百科re? 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!


Please refer this solution

It does what you want.

0

精彩评论

暂无评论...
验证码 换一张
取 消