How can i add a next and previous button at the segmented Controller?

岁酱吖の 提交于 2019-12-11 15:25:37

问题


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?


回答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).



来源:https://stackoverflow.com/questions/8222018/how-can-i-add-a-next-and-previous-button-at-the-segmented-controller

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!