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.
Asked
Active
Viewed 86 times
1 Answers
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