ios - 使用 PSPDF 控制导航栏色调

标签 ios objective-c pspdfkit

您好,我在 UINavigationController 中嵌入了一个 PSPDFViewController,然后我将其作为 splitview Controller 中的左 Controller 。

我已将导航栏的颜色设置为与右手 Controller 导航栏相匹配,但似乎 PSPDFKit 正在稍微更改颜色或 alpha。有什么办法可以关闭它吗?

enter image description here

这是我创建 Controller 的方式:

PSPDFViewController *pspdfController = [[PSPDFViewController alloc] initWithDocument:document];
UINavigationController *pspdfNavigationController = [[UINavigationController alloc] initWithRootViewController:pspdfController];

pspdfNavigationController.barTintColor = [[UIColor alloc] initWithRed:252.0/255.0 green:14.0/255.0 blue:47.0/255.0 alpha:1.0];;
pspdfNavigationController.backgroundColor = [[[UIColor alloc] initWithRed:252.0/255.0 green:14.0/255.0 blue:47.0/255.0 alpha:1.0];
pspdfNavigationController.tintColor = [UIColor whiteColor];
navbar.translucent = NO;

最佳答案

卢兹:

self.transparentHUD = NO;

关于ios - 使用 PSPDF 控制导航栏色调,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21979909/

相关文章:

cocoa-touch - 是否有带有标签和文本字段的可重用 UITableViewCell?

ios - Xcode 11 - 产品/存档卡在通知扩展上

ios - NSDictionary 和核心数据

ios - 内存管理 - 如何在不创建新实例的情况下显示已实例化的 ViewController

xcode7 - 3rd 方框架库未加载 : 'Image not found'

ios - UIActivityViewController 共享应用列表为空

objective-c - 从 Core Data 检索 NSDate 时的时区问题

iphone - ASIHTTPRequest 中 POST 中的空主体

ios - 链接器错误编译 PDFKit

android - 使用 PSPDFKit 创建 PDF 注释时如何显示自定义 Dialogfragment