views:

117

answers:

1

Hi all,

I am working on an app that uses a navigation controller to control the views. In one part of my app, I want to have a UIView with a UISegmentedControl just underneath the navigation that will "filter" the UITableView. Essentially:

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

So how do I put this together; how would I do it in code or how would I do it in IB?

Thanks!

+1  A: 

That seems pretty close to the Scope bar of a UISearchBar. Have you considered using that?

Dave DeLong