调用 presentViewController 选项卡栏后丢失
after call presentViewController tab bar is missing
test1 是 tarbarcontorller 中的第一个视图..
在我调用 presentViewController 选项卡栏后丢失
我该如何解决??
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle: nil];
TestTableViewController *TestTableViewController = [storyboard instantiateViewControllerWithIdentifier:@"test1"];
TestTableViewController.memberid = memberid;
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:TestTableViewController];
[self.navigationController presentViewController:navigationController animated:YES completion:nil];
您应该展示您的 TabBarController,而不是标签栏控制器的第一个视图。它将正确显示标签栏控制器中的第一个视图。
test1 是 tarbarcontorller 中的第一个视图.. 在我调用 presentViewController 选项卡栏后丢失 我该如何解决??
UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@"Main" bundle: nil];
TestTableViewController *TestTableViewController = [storyboard instantiateViewControllerWithIdentifier:@"test1"];
TestTableViewController.memberid = memberid;
UINavigationController *navigationController = [[UINavigationController alloc] initWithRootViewController:TestTableViewController];
[self.navigationController presentViewController:navigationController animated:YES completion:nil];
您应该展示您的 TabBarController,而不是标签栏控制器的第一个视图。它将正确显示标签栏控制器中的第一个视图。