3
UIPrintInteractionController의 탐색 모음 제목 (프린터 옵션)을 변경하는 방법은 무엇입니까?UIPrintInteractionController 변경 탐색 막대 제목
UIPrintInteractionController의 탐색 모음 제목 (프린터 옵션)을 변경하는 방법은 무엇입니까?UIPrintInteractionController 변경 탐색 막대 제목
당신은, 그것의 변화 모습을 위해 일했다
- (UIViewController *)printInteractionControllerParentViewController: (UIPrintInteractionController *)printInteractionController
{
return self.navigationController;
}
- (void)printInteractionControllerDidPresentPrinterOptions:(UIPrintInteractionController *)printInteractionController
{
// self.navigationController.topViewController.navigationController.navigationBar.tintColor=[UIColor redColor];
self.navigationController.navigationBar.tintColor = [UIColor greenColor];
// self.navigationController.topViewController.navigationController.navigationBar.barTintColor=[UIColor purpleColor];
self.navigationController.topViewController.navigationController.navigationBar.tintColor=[UIColor yellowColor];
}
#pragma mark - Print Delegate -
- (UIViewController *)printInteractionControllerParentViewController:(UIPrintInteractionController *)printInteractionController {
return self.navigationController;
}
- (void)printInteractionControllerDidPresentPrinterOptions:(UIPrintInteractionController *)printInteractionController {
[[UIApplication sharedApplication]setStatusBarStyle:UIStatusBarStyleLightContent];
self.navigationController.navigationBar.barTintColor = AppColor;
self.navigationController.topViewController.navigationController.navigationBar.tintColor=[UIColor whiteColor];
[[UINavigationBar appearance] setTitleTextAttributes:
@{NSForegroundColorAttributeName: [UIColor whiteColor]}];
}
감사를 UIPrintInteractionController의 위임 방법을 사용할 수 있습니다. 그러나 인쇄 컨트롤러가 전체보기를 커버하므로 인쇄 컨트롤러를 팝업으로 유지해야합니다. – Hokage
콘텐츠 컨트롤러로 탐색 컨트롤러가있는 팝 오버를 만들어야합니다. 그런 다음 대리모 printInteractionControllerParentViewController에 탐색 컨트롤러를 반환합니다. – Hokage
@Allan : 안녕하세요, 지연으로 인해 미안합니다. 제 업무에 바빴습니다. 문제는 해결 되었습니까? –