我有一个标签视图控制器,它有一个像这样的按钮,当它被按下时,会出现一个模式:
PostViewController *post = [[PostViewController alloc] init];
// [self.navigationController pushViewController:post animated:YES];
// Presentation
[self presentViewController:post animated:YES completion:nil];
当模式完成后,我想关闭它并像这样推送一个新的视图控制器:
ProfilesViewController *profile = [[ProfilesViewController alloc] init];
[self.navigationController pushViewController:profile animated:YES];
但是我不能在 post vc 中将其作为模态。我该怎么做呢?