iosobjective-cuiscrollviewphotolibrary

How to save the content of scrollview to photo library in ios


I am new to ios development. I am trying to implement an ios application with UIScrollview. The purpose of my scroll view is to arrange some images. I need to save the content of the scrollview to photo Library, attach it to email, etc.

Is it posible? If it is possible, how can I do this?

If any body know please clear my doubt. Thanks in advance.


Solution

  • According to the comments, I understand that you want to save the whole content of a UIScrollView.

    1. Firstly, whenever you use UIScrollView, you always have to set another UIView as its content. That UIView is exactly the whole content of your UIScrollView.

    2. So the question becomes how to save a UIView as an image or attach it into email, well I find a few pages to you which is exactly what you want.

    Save UIView's representation to file
    http://www.icodeblog.com/2009/07/27/1188/
    http://cocoatouch.blog138.fc2.com/blog-entry-57.html