2016-10-06 6 views
0

UIPrintInteractionController(Swift)はいくつの最大印刷を実行できますか?UIPrintInteractionController(Swift)はいくつの最大印刷を実行できますか?

現在、プロジェクトのAirPrintを行っています。 Printer Simulatorを使用して一括して印刷する際のストレステストの仕方が分かります。

  • printInteractionControllerIsPrintingJobのようなデリゲートがありますか?

  • printing waiting in queueの番号をデバッグするにはどうすればよいですか?

  • 印刷のアラートビューをカスタマイズする方法はありますか?

乾杯、ドキュメントから

答えて

0

の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-で待機を取得するために任意のデリゲートメソッドを提供していません。 UIPrint​Interaction​Controller - Written by Nate Cook

この回答が役に立ちましたか、必要なものがあれば、それを忘れずに:)。

アプリに幸運を祈る。

+0

あなたは大歓迎です:) –

+0

ありがとうございます@houssem。それらは私にとって素晴らしいヒントです。もう1つの質問があります,,,, 印刷中にAlertViewを削除することはできますか? http://imgur.com/a/LRwQ0 – murraymurraymurray

+0

はい、[this Stackoverflow question](http://stackoverflow.com/questions/29925387/skipping-the-printing-ui-in-ios-8)を参照してください。 。受け入れられた答えはあなたがしたいことを持っています:): –

関連する問題