Advertisement
Guest User

Untitled

a guest
Mar 30th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.76 KB | None | 0 0
  1. // dismiss your view controller 2
  2. [self dismissViewControllerAnimated:YES completion:^{
  3.  
  4. //I am not sure the following line will work for dismiss the view controller1
  5. [self.presentingViewController dismissViewControllerAnimated:YES completion:nil];
  6.  
  7. // present your view controller 3
  8. [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:videoPlay animated:YES completion:NULL];
  9. }];
  10.  
  11. // dismiss your view controller 2 and view controller 2
  12. [self.presentingViewController.presentingViewController dismissViewControllerAnimated:YES completion:^{
  13.  
  14.  
  15. // present your view controller 3
  16. [[UIApplication sharedApplication].keyWindow.rootViewController presentViewController:videoPlay animated:YES completion:NULL];
  17. }];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement