在 iPhone 上保存用户的照片吗?
我想知道以下情况是否可能; 假设用户在另一张图上绘制自己的图画(包括文本和线条),可以保存结果然后上传吗?
提前致谢!
I was wondering whether the following scenario is possible; let's say a user draws his own drawing (including text and lines) over another, could the result be saved and then uploaded?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这是完全可能的。 您将需要考虑创建自己的 UIView 子类来进行绘图,并且可以使用核心图形保存生成的图像。 要将图像上传到您选择的服务器,您可以使用 NSMutableURLRequest 和 NSURLConnection 类。 如果您是新手开发人员,第一部分可能会具有挑战性,但这是可以完成的。
Yes, this is perfectly possible. You will want to look into creating your own UIView subclass for drawing and you can save the resulting image using core graphics. To upload the image to a server of your choice you could use the NSMutableURLRequest and NSURLConnection classes. If you are a novice developer the first part of this might prove challenging, but it can be done.