当我从 designworks.xib (designworks.m, designworks.h) 切换到 MainStoryboard FirstViewController (这是一个标签栏控制器,标签栏外的第一个控制器)时,它会在故事板上加载内容,但不会在标签栏中加载导航在底部。
- (IBAction)backToHome:(id)sender {
/*
FirstViewController *fvc = [[FirstViewController alloc] initWithNibName:nil bundle:nil];
[self presentViewController:fvc animated:YES completion:nil];
*/
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle:nil];
FirstViewController *fvc = [storyboard instantiateViewControllerWithIdentifier:@"FirstViewController"];
fvc.modalTransitionStyle = UIModalTransitionStyleCoverVertical;
[self presentViewController:fvc animated:YES completion:nil];
}