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?
这取决于您的要求。但使用分段控件推送视图并不是一个好的做法。分段应该像开关一样工作。例如,根据段选择显示数据的 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.