:
の1-するvar printingItems:[任意]? {get set} 印刷可能オブジェクト(NSURL、NSData、UIImage、またはALAsset)の配列を受け取ります。ドキュメントには制限がありませんので、制限はアーキテクチャ内のunsigned intの値とみなされます。 スタートと印刷ジョブの終了
func printInteractionControllerWillStartJob(UIPrintInteractionController)
//Tells the delegate that the print job is about to start.
func printInteractionControllerDidFinishJob(UIPrintInteractionController)
//Tells the delegate that the print job has ended.
あなたはIsPrintingステータスを取得するために、これらのを使用することができます。
2 - 初めと印刷の終わりのための2つのデリゲートメソッドがあります。 (1番目と2番目の間)。 、スウィフトを使用して印刷に関するいくつかの詳細な説明については
printInfo UIPrintInfo: The aforementioned print job configuration.
printPaper UIPrintPaper: A simple type that describes the physical and printable size of a paper type; except for specialized applications, this will be handled for you by UIKit.
showsNumberOfCopies Bool: When true, lets the user choose the number of copies.
showsPageRange Bool: When true, lets the user choose a sub-range from the printed material. This only makes sense with multi-page content—it’s turned off by default for images.
showsPaperSelectionForLoadedPapers Bool: When this is true and the selected printer has multiple paper options, the UI will let the user choose which paper to print on.
:
3-ドキュメントはあなたが使用してアラートをカスタマイズすることができますキュー
、4-で待機を取得するために任意のデリゲートメソッドを提供していません。 UIPrintInteractionController - Written by Nate Cook
この回答が役に立ちましたか、必要なものがあれば、それを忘れずに:)。
アプリに幸運を祈る。
あなたは大歓迎です:) –
ありがとうございます@houssem。それらは私にとって素晴らしいヒントです。もう1つの質問があります,,,, 印刷中にAlertViewを削除することはできますか? http://imgur.com/a/LRwQ0 – murraymurraymurray
はい、[this Stackoverflow question](http://stackoverflow.com/questions/29925387/skipping-the-printing-ui-in-ios-8)を参照してください。 。受け入れられた答えはあなたがしたいことを持っています:): –