SettingsViewController* settings = [[SettingsViewController alloc] init]; UINavigationController *settingsNav = [[UINavigationController alloc] initWithRootViewController:settings]; [navigationController presentModalViewController:settingsNav animated:YES]; [settingsNav dismissModalViewControllerAnimated:YES];
If SettingsViewController is a UIViewController, then:
SettingsViewController* settings = [[SettingsViewController alloc] init]; [self presentModalViewController:settings animated:YES]; [settings dismissModalViewControllerAnimated:YES];
source share