iphone – 在UINavigationBar下实现UISegmentedControl的“最佳”方式

前端之家收集整理的这篇文章主要介绍了iphone – 在UINavigationBar下实现UISegmentedControl的“最佳”方式前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我正在开发一个使用导航控制器控制视图的应用程序.在我的应用程序的一个部分中,我希望在导航下方有一个带有UISegmentedControl的UIView,它将“过滤”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                        > |
========================================

那我怎么把它放在一起;我将如何在代码中执行此操作或如何在IB中执行此操作?

谢谢!

解决方法

这看起来非常接近UISearchBar的Scope栏.你考虑过使用它吗?

猜你在找的Xcode相关文章