带有浮动UIView/UIButton的顺序UITableView导航 [英] Sequential UITableView navigation with floating UIView / UIButton
问题描述
我有一系列UITableViews(子项A,B,C),它们都有一个共同的父级Tableview.
在子表视图之间进行导航是顺序的(例如,遵循食谱).
I've got a series of UITableViews (Child A, B, C) which all have a common parent Tableview.
Navigating between children tableviews will be sequential (e.g. following a recipe).
此刻,导航看起来像这样:
从父级TableView开始(行A,B,C的子级):
选择子项A->推送子项A->查看子项A->单击返回"以弹出子项A并返回到父级
对孩子B,C重复
At the moment, navigation looks like this:
Starting in Parent TableView (Rows Child A, B, C):
Select Child A -> Push Child A -> View Child A -> click Return to pop Child A and return to Parent
Repeat for Child B, C
但是,如果我们可以像这样导航,那将是整洁的事情:
从父级TableView开始(行A,B,C的子级):
选择子项A->推动子项A->查看子项A->单击浮动的透明下一步按钮/视图->推动子项B->等等...
However, what would be neat is if we could navigate like this:
Starting in Parent TableView (Rows Child A, B, C):
Select Child A -> Push Child A -> View Child A -> Click a floating, transparent Next button/view -> Push Child B -> etc...
我没有在任何示例代码中看到此导航的任何示例-这可能吗,还是有一些隐藏的陷阱?
I haven't seen any examples of this navigation in any sample code - is this possible or are there some hidden gotchas?
推荐答案
我确定是可行的,但是您可能必须创建一个自定义UIView子类才能处理下一个/上一个"按钮.该自定义类将弹出当前视图,并在父TableView中调用一个方法以将适当的UITableView推入堆栈.
I'm sure it's possible, but you'll probably have to create a custom UIView subclass to be able to handle the Next/Previous buttons. This custom class would pop the current view and call a method in the parent TableView to push the appropriate UITableView onto the stack.
这篇关于带有浮动UIView/UIButton的顺序UITableView导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!