Created
March 21, 2012 10:55
-
-
Save anonymous/2146167 to your computer and use it in GitHub Desktop.
hiding navigation bar
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- (void) openNear | |
{ | |
if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPhone) | |
{ | |
nearViewController = [[NearViewController alloc] initWithNibName:@"NearViewController_iPhone" bundle:nil]; | |
} | |
else | |
{ | |
nearViewController = [[NearViewController alloc] initWithNibName:@"NearViewController_iPad" bundle:nil]; | |
} | |
navController.navigationBar.hidden = YES; | |
[navController pushViewController:nearViewController animated:YES]; | |
navController.navigationBar.hidden = YES; | |
[nearViewController release]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment