如何在分段控制器上添加下一个和上一个按钮?
在我的应用程序中,我的导航栏有一个分段控制器,到目前为止我那里有 6 个按钮。
但现在我想在分段控制器上添加更多 5 个按钮和这 6 个按钮,但问题是我想在分段控制器上添加上一个和下一个按钮,以查看分段控制器的上一个按钮和下一个按钮。
注意:我知道如何在导航栏设置分段控制器。到目前为止,我已经能够在导航栏设置分段控制器。
如果我再解释一下,它应该是这样的:
<上一页 |一个 |乙| C | d |电子|下一个>
当我按 next
时,它将显示如下:
<代码><上一页 |乙| C | d |电子| F |下一个>
就像上一个按钮一样。
任何人都可以帮助我。我该怎么做?
In my application I have a segmented controller at navigation bar and until now I have 6 buttons there.
But now I want to add more 5 buttons with these 6 buttons at segmented controller but problem is I want to add an previous and next button at segmented controller to see previous buttons and next buttons of the segmented controller.
NOTE THAT: I know how can set an segmented controller at navigation bar. Until now, I have become able to set segmented controller at navigation bar.
If I explain again then it should be look like this:
< Previous | A | B | C | D | E | next >
when I will press next
then it will show like this:< previous | B | C | D | E | F | next >
like this for previous button.
Anybody help me. How can I do this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
就用户体验而言,分段控件并非设计用于这种方式。
如果您确实愿意,可以强制执行此操作,方法是在选择第一个或最后一个段时修改相应段上的文本,然后清除选择,但用户习惯了分段控件的工作方式,这可能是令人困惑(更不用说它可能无法通过苹果的审查过程)。
In terms of user experience, segmented controls are not designed to be used this way.
You could force it if you really wanted to, by modifying the text on the appropriate segments when either the first or last segment was selected and then clearing the selection, but users are accustomed to how segmented controls are supposed to work, and this could be confusing (not to mention it may fail Apple's review process).