Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import "MainViewController.h"
- @interface MainViewController ()
- @end
- @implementation MainViewController
- - (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
- {
- self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
- if (self) {
- }
- return self;
- }
- - (void)viewDidLoad
- {
- [super viewDidLoad];
- }
- - (void)didReceiveMemoryWarning
- {
- [super didReceiveMemoryWarning];
- }
- - (IBAction)didTapFirstButton:(id)sender
- {
- }
- - (IBAction)didTapSecondButton:(id)sender
- {
- }
- - (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender
- {
- if ([[segue identifier] isEqualToString:@"ToFirstView"]) {
- FirstViewController *fvc = [segue destinationViewController];
- }
- if ([[segue identifier] isEqualToString:@"ToSecondView"]) {
- SecondViewController *svc = [segue destinationViewController];
- }
- }
- - (BOOL)shouldPerformSegueWithIdentifier:(NSString *)identifier sender:(id)sender
- {
- BOOL isOkay = YES;
- if (isOkay == NO) {
- return NO;
- }
- return YES;
- }
- @end
Advertisement
Add Comment
Please, Sign In to add comment