0

I'm wondering how one goes about implementing something like the following:

enter image description here

The grey bar underneath the navigation bar that contains 2 buttons, 'Expense' and 'Income'. Can anyone point me to a resource or explain how you implement something like this?

Jack Nutkins
  • 1,555
  • 5
  • 36
  • 71

3 Answers3

1

Seems like the second bar is a Toolbar. Just place a Toolbar underneath the navigation bar. What problems you are facing?

azamsharp
  • 19,710
  • 36
  • 144
  • 222
0

You could use a Segmented Control (UISegmentedControl) in a Toolbar (UIToolbar) that's placed below the navigation bar.

gtmtg
  • 3,010
  • 2
  • 22
  • 35
  • XCode doesn't seem to let me place it there if I'm using a UICollectionViewController. What do I do? – fatuhoku May 10 '14 at 18:53
0

From this layout, my guess at the implementation is:

  • Top Level: UITabViewController
  • Selected Tab: MyHistoryViewController (subclass of UIViewController - or possibly a UITableViewController - placed inside a UINavigationController)
  • MyHistoryViewController can be laid out in Interface Builder (build into Xcode these days) with a UIToolbar using a UISegmentedControl (or your custom toolbar that looks like that above) above a UITableView

The View Controller Programming Guide is a useful resource.

bshirley
  • 8,217
  • 1
  • 37
  • 43