0

Is there a way to replace the toolbar in a uinavigationcontroller with a custom uiscrollview? I essentially want a toolbar that one can pan left and right and can detect tap gestures.

user1802143
  • 14,662
  • 17
  • 46
  • 55

1 Answers1

0

You can add a scroll view to a UINavigationBar using -initWithCustomView: on UIBarButtonItem.

You can also subclass UINavigationBar, add your scroll view as a subview, and then instantiate your navigation controller with -initWithNavigationBarClass:toolbarClass:. Pass in [YourCustomNavBarClass class] to the first parameter, and the navigation controller will use your subclass whenever it needs to show a nav bar.

Zev Eisenberg
  • 8,080
  • 5
  • 38
  • 82