我正在使用導航控制器來控制視圖的應用程序。在我的應用程序的一部分中,我想要在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中執行此操作?
謝謝!