Advertisement
Guest User

Untitled

a guest
Mar 10th, 2013
158
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #import "MainViewController.h"
  2.  
  3. @interface MainViewController ()
  4.  
  5. @end
  6.  
  7. @implementation MainViewController
  8.  
  9. - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
  10. {
  11.     self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
  12.     if (self) {
  13.  
  14.     }
  15.     return self;
  16. }
  17.  
  18. - (void)viewDidLoad
  19. {
  20.     [super viewDidLoad];  
  21. }
  22.  
  23. - (void)didReceiveMemoryWarning
  24. {
  25.     [super didReceiveMemoryWarning];
  26. }
  27.  
  28. - (IBAction)didTapFirstButton:(id)sender
  29. {
  30.     [self performSegueWithIdentifier:@"ToFirstView" sender:sender];
  31.  
  32. }
  33.  
  34. - (IBAction)didTapSecondButton:(id)sender
  35. {
  36.     [self performSegueWithIdentifier:@"ToSecondView" sender:sender];
  37. }
  38.  
  39. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
  40. {
  41.     if ([[segue identifier] isEqualToString:@"ToFirstView"]) {
  42.         FirstViewController *fvc = [segue destinationViewController];
  43.     }
  44.     if ([[segue identifier] isEqualToString:@"ToSecondView"]) {
  45.         SecondViewController *svc = [segue destinationViewController];
  46.     }
  47. }
  48.  
  49. @end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement