【发布时间】:2012-05-15 01:33:13
【问题描述】:
我有以下场景:
UITabBarController
--tab1
--tab2
----UINavigationController (with a UITableViewController and 3 rows)
------pushedViewController
--tab3
--tab4
--tab5
好的,所以,当用户单击 UINavigationViewController 中的一个选项时,它会推送“pushedViewController”,并且在该视图控制器中,我希望有一个分段控件,就像 App Store 上的那个 http://i.stack.imgur.com/hrdxL.png
我该怎么做?
我已经检查过了
https://stackoverflow.com/questions/1559794/changing-views-from-uisegmentedcontrol
https://stackoverflow.com/questions/5280653/uisegmentedcontrol-to-switch-views-in-uitabbarcontroller
http://www.astroryan.com/?p=19
https://stackoverflow.com/questions/8723094/using-uisegmentedcontrol-to-switch-between-two-views
这可以帮助我,但我不知道如何 Switch between UIViewControllers using UISegmentedControl
这个用户也问了同样的问题,但没有完整的代码 Recreating Segmented Control from iPhone App Store
【问题讨论】: