iOS sdk打印多张图像
我正在开发我的第一个应用程序,现在我正在尝试在“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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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