How to customize the color of the navigation bar in qlpreviewcontroller
问题 Can I customize the color of the navigation bar in the QlPreviewController controller? I have tried following [[UINavigationBar appearanceWhenContainedIn: [QLPreviewController class], nil] setBarTintColor: [UIColor redColor]]; but it does not work. Thanks. 回答1: Yeah, there is a bug with barTintColor on QLPreviewController for iOS 11 if you are showing it via presentViewController: animated: Here's my solution, use setBackgroundImage: with 1x1 image instead of setBarTintColor: [