从StroyBoard得到一个View
UIViewController *viewController = [[UIStoryboard storyboardWithName:@"MainStoryboard" bundle:NULL] instantiateViewControllerWithIdentifier:@"ResultsController"];
[self presentModalViewController:viewController animated:NO];
从NIB中得到一个View
ResultsController *rc = [[ResultsController alloc] initWithNibName:@"ResultsController" bundle:nil];
[self.navigationController presentModalViewController:rc animated:YES];
[rc release];
上面的两段代码实现的功能是一样的!