代码创建storyboard中的窗体

    UIStoryboard *board = [UIStoryboard storyboardWithName:@"MainStoryboard_iPhone" bundle:nil];

    HomeViewController *hvc = [board instantiateViewControllerWithIdentifier:@"HomeViewController"];

    [self.navigationController pushViewController:hvc animated:YES];

你可能感兴趣的:(代码创建storyboard中的窗体)