ios中如何将scrollview的内容保存到照片库
我是ios开发新手。我正在尝试使用 UIScrollview 实现 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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
根据评论,我了解到您想要保存
UIScrollView
的全部内容。首先,每当您使用
UIScrollView
时,您总是必须设置另一个UIView
作为其内容。UIView
正是UIScrollView
的全部内容。所以问题变成了如何将
UIView
另存为图像或将其附加到电子邮件中,我找到了几页,这正是您想要的。将 UIView 的表示保存到文件
http://www.icodeblog.com/2009/07/27/1188/< /a>
http://cocoatouch.blog138.fc2.com/blog-entry-57。 html
According to the comments, I understand that you want to save the whole content of a
UIScrollView
.Firstly, whenever you use
UIScrollView
, you always have to set anotherUIView
as its content. ThatUIView
is exactly the whole content of yourUIScrollView
.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