1

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

(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

4

1 回答 1

0

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

于 2013-01-25T20:51:43.573 回答