// // ViewController.m // datePlanner // // Created by Brent Marohnic on 2/19/13. // Copyright (c) 2013 Brent Marohnic. All rights reserved. // #import "ViewController.h" #import "ViewController2.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. } - (void)didReceiveMemoryWarning { [super didReceiveMemoryWarning]; // Dispose of any resources that can be recreated. } -(IBAction)showSecondView:(id)sender { ViewController2 *secondView = [[ViewController2 alloc] initWithNibName:@"ViewController2" bundle:nil]; if (secondView != nil) { [self presentViewController:secondView animated:TRUE completion:nil]; } } @end