File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -933,9 +933,14 @@ @implementation ApptentiveNavigationController
933
933
- (nullable instancetype )initWithCoder : (NSCoder *)aDecoder {
934
934
self = [super initWithCoder: aDecoder];
935
935
if (self) {
936
-
937
- if (!([UINavigationBar appearance ].barTintColor || [UINavigationBar appearanceWhenContainedInInstancesOfClasses: @[ [ApptentiveNavigationController class ] ]].barTintColor )) {
938
- [UINavigationBar appearanceWhenContainedInInstancesOfClasses: @[ [ApptentiveNavigationController class ] ]].barTintColor = [UIColor whiteColor ];
936
+ if (@available (iOS 9.0 , *)) {
937
+ if (!([UINavigationBar appearance ].barTintColor || [UINavigationBar appearanceWhenContainedInInstancesOfClasses: @[ [ApptentiveNavigationController class ] ]].barTintColor )) {
938
+ [UINavigationBar appearanceWhenContainedInInstancesOfClasses: @[ [ApptentiveNavigationController class ] ]].barTintColor = [UIColor whiteColor ];
939
+ }
940
+ } else {
941
+ if (!([UINavigationBar appearance ].barTintColor || [UINavigationBar appearanceWhenContainedIn: [ApptentiveNavigationController class ], nil ].barTintColor )) {
942
+ [UINavigationBar appearanceWhenContainedIn: [ApptentiveNavigationController class ], nil ].barTintColor = [UIColor whiteColor ];
943
+ }
939
944
}
940
945
}
941
946
return self;
You can’t perform that action at this time.
0 commit comments