2010-08-03 43 views
4

我正在使用導航控制器來控制視圖的應用程序。在我的應用程序的一部分中,我想要在UITableView的「導航」下面有一個UISegmentedControl的UIView。基本上:在UINavigationBar下實現UISegmentedControl的「最佳」方法

======================================== 
| < 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      > | 
======================================== 

那麼我怎麼把它放在一起;我將如何在代碼中執行該操作,或者如何在IB中執行此操作?

謝謝!

回答

1

這似乎非常接近UISearchBar的範圍欄。你有沒有考慮過使用它?

0

UITableView應該有2個部分,第1部分中的segmentedControl和第2部分中的項目。