adamdebono / ADFlipTransition

An alternative presentation animation for iOS. Mimics the flip animation from the iOS iTunes/App Store.
Other
126 stars 32 forks source link

Visible screen flicker when view controller is scaled #17

Open fatuhoku opened 9 years ago

fatuhoku commented 9 years ago

Tested on the simulator.

mixtly87 commented 8 years ago

I fixed it like this: in ADFlipTransition.m, line 335 where last completion block begins:

if (modal) {
    [srcViewController presentViewController:[self destinationViewController] animated:NO completion:^{
        [destView removeFromSuperview];
    }];
    [[self sourceView] setHidden:NO];
}
else
{
    [destView removeFromSuperview];
}

The key is to remove destView only after srcViewController has been presented.

adamdebono commented 8 years ago

Sorry but I'm too busy to maintain my OSS stuff these days. Feel free to make a pull request with the changes.