Guest User

Untitled

a guest
Mar 10th, 2013
65
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.  
  31. }
  32.  
  33. - (IBAction)didTapSecondButton:(id)sender
  34. {
  35.  
  36. }
  37.  
  38. - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
  39. {
  40.     if ([[segue identifier] isEqualToString:@"ToFirstView"]) {
  41.         FirstViewController *fvc = [segue destinationViewController];
  42.     }
  43.     if ([[segue identifier] isEqualToString:@"ToSecondView"]) {
  44.         SecondViewController *svc = [segue destinationViewController];
  45.     }
  46. }
  47.  
  48. - (BOOL)shouldPerformSegueWithIdentifier:(NSString *)identifier sender:(id)sender
  49. {
  50.     BOOL isOkay = YES;
  51.    
  52.     if (isOkay == NO) {
  53.         return NO;
  54.     }
  55.    
  56.     return YES;
  57. }
  58.  
  59. @end
Advertisement
Add Comment
Please, Sign In to add comment