Printing
Your app can take advantage of the system’s built-in AirPrint technology to enable wireless printing of images, PDFs, and other content to compatible printers. While viewing printable content in an AirPrint-enabled app, people typically tap an action button in a navigation bar or toolbar and then tap a Print action to display a printer view. This view provides a list of available printers and any customizable options, such as the number of copies and page range, and provides a button to initiate printing.
你的app可以利用系統(tǒng)內(nèi)置的AirPrint技術(shù)來啟用無線打印圖片,PDF,和其他內(nèi)容到兼容的打印機。當(dāng)在一個支持AirPrint的app瀏覽可打印的內(nèi)容時,用戶一般敲擊一個在導(dǎo)航或工具欄的操作按鈕色冀,然后敲擊一個打印操作來顯示打印視圖续室。這個視圖提供一系列可用的打印機和任何可定制的選項闯袒,例如復(fù)印的張數(shù)和頁面范圍幔嗦,和提供一個按鈕開始打印酿愧。
Make printing discoverable.Enable printing through the system-provided Action button if your app has a toolbar or navigation bar. Users are familiar with this button and use it to print in other apps. If your app doesn’t have a toolbar or navigation bar, design a custom print button instead.
使打印可發(fā)現(xiàn)。如果你的app有一個工具或?qū)Ш綑谕ㄟ^系統(tǒng)提供的操作按鈕激活打印邀泉。用戶對這個按鈕熟悉且在其他app也是用它來打印嬉挡。如果你的app沒有工具欄或?qū)Ш綑冢O(shè)計一個定制的按鈕代替汇恤。
Enable printing only when it's possible to print.If there’s nothing onscreen to print or no printers are available, don’t show a Print action when someone taps the Action button. If your app implements a custom print button, disable or hide it when printing isn’t possible.
只有當(dāng)它需要打印時才激活打印庞钢。如果屏幕上沒有內(nèi)容要打印或者沒有打印機可用,不要顯示一個打印操作當(dāng)某人敲擊操作按鈕時因谎。如果你的app實現(xiàn)一個定制的打印按鈕焊夸,禁用或隱藏它當(dāng)打印不可用時。
Provide printing options that add value.Think about the options people might want to specify when they print your content. Consider options for selecting a page range and requesting multiple copies. Enable additional options, such as front and back printing, if it makes sense and the printer supports them.
提供打印選項來增加值蓝角≮逅耄考慮當(dāng)用戶打印你的內(nèi)容可能需要定制∈苟欤考慮選擇一個頁面范圍和要求多份復(fù)制的選項揪阶。激活額外的選項,例如前后兩面打印患朱,如果這樣有意義而且打印機支持鲁僚。
For developer guidance, seeDrawing and Printing Guide for iOSandUIPrintInteractionController.