diff --git a/KMNavigationBarTransition/UINavigationController+KMNavigationBarTransition.m b/KMNavigationBarTransition/UINavigationController+KMNavigationBarTransition.m index 9743056..f9cd82a 100755 --- a/KMNavigationBarTransition/UINavigationController+KMNavigationBarTransition.m +++ b/KMNavigationBarTransition/UINavigationController+KMNavigationBarTransition.m @@ -62,6 +62,10 @@ + (void)load { } - (UIColor *)km_containerViewBackgroundColor { + id tc = self.transitionCoordinator; + if (tc) { + return [tc containerView].backgroundColor; + } return [UIColor whiteColor]; }