Segue Push animation with transparent background blinks on iOS 7

I have this simple storyboard:

enter image description here

all of these UIViewController backgrounds are transparent (transparent), but I put the background image as the navigation bar and background background using this code:

- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{      
    // window background
    self.window.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"window"]];

    // navbar background
    UIImage *navBackgroundImage = [UIImage imageNamed:@"navbar_bg"];
    [[UINavigationBar appearance] setBackgroundImage:navBackgroundImage forBarMetrics:UIBarMetricsDefault];
    [[UINavigationBar appearance] setShadowImage:[[UIImage alloc] init]];
    return YES;
}

usually this code works on iOS 6 without blinking, but today, when I try to build it on iOS 7, the segue (push) animation is blinking. It seems that the background of the UIViewController is not completely transparent.

watch this video: http://www.youtube.com/watch?v=-oZc9SwPJjs

Thank you

+4
source share

Source: https://habr.com/ru/post/1525750/


All Articles