Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // dismiss your view controller 2
- [self dismissViewControllerAnimated:YES completion:^{
- //I am not sure the following line will work for dismiss the view controller1
- [self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
- // present your view controller 3
- [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:videoPlay animated:YES completion:NULL];
- }];
- // dismiss your view controller 2 and view controller 2
- [self.presentingViewController.presentingViewController dismissViewControllerAnimated:YES completion:^{
- // present your view controller 3
- [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:videoPlay animated:YES completion:NULL];
- }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement