Skip to content

How to add a UIToolbar

macteo edited this page Jun 6, 2011 · 1 revision

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 manually in viewDidAppear:animated:, since doing earlier will cause the toolbar to discard them too soon.