Skip to content
This repository

The app crashes when calling transition for view controllers. #10

Open
wants to merge 1 commit into from

1 participant

Chi Qi
Chi Qi

Change ModalViewController-iPad to ModalViewController~iPad to avoid crashing when calling transition for view controllers.

Chi Qi Change ModalViewController-iPad to ModalViewController~iPad to avoid …
…crashing when calling transition for view controllers.
7d785f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Oct 26, 2011
Chi Qi Change ModalViewController-iPad to ModalViewController~iPad to avoid …
…crashing when calling transition for view controllers.
7d785f1
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  Classes/RootViewController.m
2  Classes/RootViewController.m
@@ -153,7 +153,7 @@ - (IBAction)modalPresentationButtonPressed:(id)sender {
153 153
154 154 ModalViewController *newController;
155 155 if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
156   - newController = [[ModalViewController alloc] initWithNibName:@"ModalViewController-iPad" bundle:nil];
  156 + newController = [[ModalViewController alloc] initWithNibName:@"ModalViewController~iPad" bundle:nil];
157 157 }
158 158 else {
159 159 newController = [[ModalViewController alloc] initWithNibName:@"ModalViewController" bundle:nil];

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.