开发者

IPhone Segmented Control Tapping

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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜