Ok, so what I am trying to do is create a Document Viewer that is similar this picture:
Basically what should happen is, when the screen is tapped anywhere, the top and bottom bar will appear. Tap again and they disappear.
I have subclassed QLPreviewController
and have managed to leverage the (top) navigation bar that already comes with QLPreviewController
. This works fine. Now I need to get the bottom bar to display whenever the top bar is displayed. I can add a UIToolbar
to the bottom of the page, but I need to intercept the touch events so I can hide/unhide the bottom bar. I cannot seem to figure out how to get it to work. I tried adding a UITapGestureRecognizer
to the view of the QLPreviewController
subclass itself to no luck. I also tried creating an overlay UIView
that has a UITapGestureRecognizer
but that prevented the user form interacting with the document underneath.
Anyone have any ideas at all on how to do this? Thanks in advance!