iPhone分段控制点击
当我们点击分段控件的各个片段时,是否允许切换到不同的屏幕(如popViewController / PushViewController)?或者我们是否必须留在同一屏幕并更改视图?
Is it allowed to switch to different screens (like popViewController / pushViewController) when we tap the segments of segmented control? or do we have to stay in the same screen and change the views?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
这取决于您的要求。但使用分段控件推送视图并不是一个好的做法。分段应该像开关一样工作。例如,根据段选择显示数据的 tableView。
It depends on your requirement. But it is not a good practice to push view using a segmented control. Segmented should work like switch. For Example a tableView which display data according to segment selection.
绝对不是不允许的,但实际上如果您正在寻找像行为导航控制器这样的页面控件可能不是最好的方法。然而,这完全取决于您的用例。
Definitely not disallowed but really if you are looking for a page control like behavior navigation controller might not be the best approach. However it totally depends on your use case.