简体   繁体   English

导航栏+索引(弹出框)

[英]Nav Bar + Index (Popover)

I'm trying to make an iPad's app, and so far I made a Nav bar controller with one button "Next" which passes from one viewcontroller to the following. 我正在尝试制作iPad的应用程序,到目前为止,我制作了一个带有一个“下一步”按钮的导航栏控制器,该按钮从一个viewcontroller传递到了以下控件。 But I'd like to give the user the option of "jumping" from one viewcontroller to another, with an index. 但是我想为用户提供带有索引的从一个视图控制器“跳转”到另一个视图的选项。 So I think that what I need is a popover or a table view. 因此,我认为我需要的是弹出窗口或表格视图。 But the rows of this table would have to load their respective viewcontrollers. 但是此表的行将必须加载其各自的视图控制器。 How can I do that ? 我怎样才能做到这一点 ?

Thank you! 谢谢!

PS1: I'm not using storyboards PS2: It can't mess up with the nav bar controller! PS1:我不使用情节提要PS2:不能与导航栏控制器搞混! PS3: Sorry for my bad English PS3:对不起,我的英语不好

If you use a table, use didSelectedRowAtIndexPath to select row and then push the correspondent view controller. 如果使用表,请使用didSelectedRowAtIndexPath选择行,然后按对应的视图控制器。 Id a popover with buttons is chosed, for each buton se a method which push the view controller (or set a tag for each button and use [sender tag] to know which view controller must be pushed). 选择一个带有按钮的弹出框,为每个按钮选择一个按下视图控制器的方法(或为每个按钮设置一个标签,并使用[sender tag]知道必须按下哪个视图控制器)。

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

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