简体   繁体   English

iOS不确定模态VC后使用哪种类型的Segue

[英]iOS not sure what type of segue to use after modal VC

In my app I open a "advanced search" as a modal segue. 在我的应用程序中,我打开“高级搜索”作为模式搜索。 But now I am not sure on what is the proper way to display the next segues. 但是现在我不确定显示下一个segues的正确方法是什么。

Right now it looks like this: 现在看起来像这样:

tab controller -> tableview -> searchVc(modal segue) -> tableview(modal segue) -> tableview(modal segue) 选项卡控制器 -> tableview- > searchVc(模态序列) -> tableview(模态序列) -> tableview(模态序列)

Everything works fine, I have made my own "back buttons" in the modal VC's, but I am not sure if this is the right way to do it. 一切正常,我在模态VC中创建了自己的“后退按钮”,但是我不确定这是否是正确的方法。

Should I instead use?: 我应该改用吗?:

tab controller -> tableview -> searchVc(modal segue) -> navigation controller -> tableview(push) -> tableview(push) 选项卡控制器 -> tableview- > searchVc(modal segue) -> 导航控制器 -> tableview(push) -> tableview(push)

It is a search form that opens in a modal segue, then I can select a city which opens a tableview and after that select state which opens another table view. 这是一个以模态搜索形式打开的搜索表单,然后我可以选择一个打开表视图的城市,然后选择一个状态来打开另一个表视图。

Both are fine, you can use either modal or push, it's your wish. 两者都很好,您可以使用模式或推送,这是您的愿望。 I prefer modal. 我更喜欢情态。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM