Advertisement
Guest User

Untitled

a guest
Mar 1st, 2015
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.27 KB | None | 0 0
  1. - (void) goBack:(NSNotification *) notification
  2. {
  3. // [self.navigationController popViewControllerAnimated:YES];
  4. // [self dismissViewControllerAnimated:YES completion:nil];
  5. [self.navigationController popToRootViewControllerAnimated:TRUE];
  6. }
  7.  
  8. [self.navigationController popToRootViewControllerAnimated:TRUE];
  9.  
  10. [self.navigationController popViewControllerAnimated:TRUE];
  11.  
  12. [self.navigationController popViewControllerAnimated:YES];
  13.  
  14. [self.navigationController popToRootViewControllerAnimated:YES];
  15.  
  16. [self.navigationController popToViewController:viewControllerObject animated:YES];
  17.  
  18. - (IBAction)backButton:(id)sender
  19. {
  20. bookdescriViewController *previosVC = [[bookdescriViewController alloc]init];
  21. [self.navigationController popViewControllerAnimated:YES]; // go to previous vc
  22. [self.navigationController popToRootViewControllerAnimated:YES]; // go to root view controller
  23. [self.navigationController popToViewController:previosVC animated:YES]; // go to any view controller
  24. [previosVC release];
  25. }
  26.  
  27. [self.navigationController dismissViewControllerAnimated:YES completion:NULL];
  28.  
  29. navigationController?.popViewControllerAnimated(true)
  30.  
  31. - (void) goBack:(NSNotification *) notification
  32. {
  33. if(!self.YOrView.isHidden)
  34. self.YOrView.hidden = YES;
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement