如何在我的 iOS 应用程序中实现该功能?

How can I implement the feature in my iOS app?

第一张图片:此视图包含 2 个带表格视图的导航栏。在第二个导航栏中,有一个按钮。

第二张和第三张图片:当我点击导航按钮(第二张)时,一个视图会像这个截图一样出现,并且根据 selected 标题会改变在导航上。

再次 select 单击导航按钮,视图将再次出现,当我们 select 根据该选项的选项表视图将更改。

什么是 pop-up 视图,如何在该视图中添加或显示表视图,如何使用 Objective-C 实现此功能?

iOS 中的“弹出视图”是一个 UIAlertController:它有两个子类型:警报和操作 sheet。然后你需要操作(它们将代表操作中的每个选项sheet)。将每个动作添加到动作 sheet 然后呈现它。就这么简单。每个动作都有一个块,在选择动作时执行。无需在动作中显示 tableCiewsheet],它应该尽可能接近原生,以保持用户熟悉的界面。有关详细信息,请参阅 human interface guidelines

UIAlertController *actionSheet = [UIAlertController alertControllerWithTitle:@"Title" message:@"Your message here" preferredStyle: UIAlertControllerStyleActionSheet ];
            UIAlertAction *action = [UIAlertAction actionWithTitle:@"First item" style:UIAlertActionStyleDefault handler:^(UIAlertAction * _Nonnull action) {
                NSLog(@"first item pressed");
            }];
            [actionSheet addAction:action];
            [self presentViewController:actionSheet animated:YES completion:nil];