iOS sdk打印多张图像

发布于 2024-11-13 11:50:02 字数 348 浏览 3 评论 0原文

我正在开发我的第一个应用程序,现在我正在尝试在“Autoscroll”Apple 示例代码的自定义版本中实现空中打印。基本上,我通过自定义按钮向用户提供打印控制器,然后他们应该可以选择打印他们选择的图像。自动滚动以这种方式工作:视图控制器中有 2 个滚动视图,一个大的滚动视图允许缩放,一个小的滚动视图通过在大的滚动视图上点击一次即可滑入/滑出。小滚动视图包含许多缩略图,通过点击进行选择时会加载到大滚动视图中。到目前为止,通过研究打印照片示例代码,我成功打印了一张图像;当视图控制器出现时加载的第一个。我知道多个准备打印的图像必须位于一个数组中,但打印和绘图指南中的示例有 1 行代码,并讨论了图像视图数组。我需要打印的图像位于滚动视图内。

预先感谢您的任何帮助。

i'm working on my first app and now i'm trying to implement air print in a customised version of the "Autoscroll" Apple sample code. basically i present the user with the print controller from a custom button and then they should have the choice of printing the image they have selected. autoscroll works in this way: you have 2 scroll views in a view controller a big one that allows zooming and a small one that slides in/out by tapping once on the big one. the small scroll view contains a number of thumbnails that are loaded in the big scroll view on selection by tapping. so far by studying the print photo sample code i manage to print one image; the first one loaded when the view controller is presented. i'm aware that multiple ready to print images have to in an array, but the example in the printing and drawing guide has 1 line of code and talks about an array of image views. the images i need to print go inside a scroll view.

thanks in advance for any help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(1

洋洋洒洒 2024-11-20 11:50:02

Xcode 作为示例源代码,您可以使用它来归档您想要的内容,因为它已经是您想要实现的一些功能。

该项目的名称是 ScrollViewSuite,您可以从这里下载:

Xcode as a sample source code that u can use to archive what u want, since it as already some of the features that you want to implement.

The name of the project is ScrollViewSuite and you can download it from here: here

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