In storyboard I have a button on my Main Menu called showCountdownViewControllerPressed.
This button is supposed to show my XIB called TimerViewController.
But when I run the app, it freezes upon button press and then after a little while crashes the app.
I put this action in my CRViewController.m (my main menu) [I also have imported the TimerViewController.h in this file]
- (IBAction)showCountdownViewControllerPressed:(id)sender {
NSLog(@"showTimerViewController");
TimerViewController *timeController = [[TimerViewController alloc]
initWithNibName:@"TimerViewController" bundle:nil];
[self presentViewController:timeController animated:YES completion:nil];
Well, if it is LandScape only, you can add this in
TimerViewController
for iOS 8, which will make theTimerViewController
rotate to the landscape mode.