iOS:UIPrintInteractionController如何更改chrome颜色?

时间:2013-01-25 19:33:23

标签: iphone ios xamarin.ios airprint uiprintinfo

在iOS中,如何更改打印弹出窗口周围的镶边颜色?

(Objective-C或C#为罚款)

以下是我展示打印机的方式:

     var printInfo = UIPrintInfo.PrintInfo;
     printInfo.OutputType = UIPrintInfoOutputType.General;

     var printer = UIPrintInteractionController.SharedPrintController;
     printer.PrintInfo = printInfo;
     printer.PrintFormatter = webView.ViewPrintFormatter;
     printer.ShowsPageRange = true;
     printer.PresentFromBarButtonItem(btnShare, true, (handler, completed, err) => {
        if (!completed && err != null)
        {
           UIAlertHelper.ShowAlert(
              "Unable to Print",
              "Sorry, we were not able to access printers from your device.",
              "Ok",
              null
              );  
        }
     }
     );

这是一个屏幕截图:

http://i.stack.imgur.com/3LbV0.jpg

1 个答案:

答案 0 :(得分:0)

这里最聪明的做法是将弹出窗口子类化并使用不同的边框颜色对其进行初始化,类似于uialertview的子类化。