iPad アプリケーションに AirPrint 機能を追加したい
Apple のDrawing and Printing Guideに記載されているプリンターのオプションを表示しようとしています。
ツールバーとUIBarButtonItem *printButton
. コントローラーで、次onPrintClick
のようなコードでプリンターオプションを受け取り、表示しようとします:
UIPrintInteractionController *controller = [UIPrintInteractionController sharedPrintController];
[controller setDelegate:self];
if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
[controller presentFromBarButtonItem:self.printButton animated:YES
completionHandler:completionHandler];
} else {
[controller presentAnimated:YES completionHandler:nil];
}
私は何も受け取らないので、助けてください:(