How to add a UIToolbar

The library will always fill the view of the MFDocumentViewController subclass, that is DocumentViewController in the sample.

To have a toolbar at the bottom, you can either add you own toolbar as overlay (it will cover the bottom of the pdf's view), and show/hide it as necessary, or as an alternative, present your DocumentViewController with a UINavigationController and use the UINavigationController default toolbar (it is hidden by default).

The latter will require you to manually set the toolbar items in viewDidAppear:animated:, since doing earlier will cause the toolbar to discard them too soon.

Recent Discussions

15 Apr, 2020 04:25 AM
26 Feb, 2020 07:23 AM
27 Jun, 2019 06:08 AM
23 Nov, 2018 01:54 PM
14 Nov, 2018 04:37 PM