-
Notifications
You must be signed in to change notification settings - Fork 615
Open
Description
Hi,
I followed your tutorials and use your VCTransitionLibrary in my app, here is my App structure :
- A NavigationController is the root of the application (using your tutorial code)
- MyRootViewController is the root view controller in the NavigationController
- MyPushedViewController is pushed or poped with animations by MyRootViewController
Everything is fine with animations, but a problem occur in the following configuration :
- MyRootViewController is on screen, (the only ViewController in the NavigationController stack)
- App goes to background
- App goes to foreground :
3.1) applicationWillEnterForeground fires a notification to NSNotificationCenter defaultCenter
3.2) MyRootViewController listen to this notification and execute the following code :
// pop to root
[self.navigationController popToRootViewControllerAnimated:NO];
// instantiate new view controller
MyPushedViewController *mpvc = [self.storyboard instantiateViewControllerWithIdentifier:@"MyPushedViewController"];
// mpvc init code...
// ...
// push the new view controller
[self.navigationController pushViewController:ncvc animated:NO]; - MyPushedViewController is displayed without any problem
- User swipe to trigger a pop, and MyRootViewController is black, not appearing in animation (but it's viewWillAppear is triggered).
I need to use animated:NO because I don't want the app to show anything else than MyPushedViewController when it's back to foreground.
The is no problem in any other configuration :
animated:YES display the animation fine
when MyPushedViewController was on screen, it's also working fine
Do you have any clue about this problem ?
Thanks for your work and your time !
Metadata
Metadata
Assignees
Labels
No labels