在 iPhone 上保存用户的照片吗?

发布于 2024-07-29 16:53:35 字数 78 浏览 1 评论 0原文

我想知道以下情况是否可能; 假设用户在另一张图上绘制自己的图画(包括文本和线条),可以保存结果然后上传吗?

提前致谢!

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

短叹 2024-08-05 16:53:35

是的,这是完全可能的。 您将需要考虑创建自己的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文