Iphone &引用;“最佳”;在UINavigationBar下实现UISegmentedControl的方法

Iphone &引用;“最佳”;在UINavigationBar下实现UISegmentedControl的方法,iphone,objective-c,xcode,interface-builder,Iphone,Objective C,Xcode,Interface Builder,我正在开发一个使用导航控制器控制视图的应用程序。在我的应用程序的一部分中,我希望在导航下方有一个UIView和一个UISegmentedControl,它将“过滤”UITableView。基本上: ======================================== | < Back) Title Goes Here | <- navigation bar ======================================== |

我正在开发一个使用导航控制器控制视图的应用程序。在我的应用程序的一部分中,我希望在导航下方有一个UIView和一个UISegmentedControl,它将“过滤”UITableView。基本上:

========================================
| < Back)     Title Goes Here          |  <- navigation bar
========================================
|    ( All | Active | Inactive )       |  <- segmented control
========================================
|    Item one                        > |  <- UITableView all the way down
|--------------------------------------|
|    Item two                        > |
|--------------------------------------|
|    Item three                      > |
|--------------------------------------|
|    Item four                       > |
|--------------------------------------|
|    Item five                       > |
|--------------------------------------|
|    Item six                        > |
========================================
========================================
||
|--------------------------------------|
|项目5>|
|--------------------------------------|
|项目6>|
========================================
那么,我该如何把这些放在一起;我将如何在代码中实现它,或者如何在IB中实现它


谢谢

这似乎非常接近
UISearchBar
的范围栏。您考虑过使用它吗?

UITableView应该有两个部分,第一部分是segmentedControl,第二部分是items