Skip to content

mruvim/PreviewControllerHideBottomButtons

Repository files navigation

PreviewControllerHideBottomButtons

###Description Repo demonstrates how to remove UIToolbar buttons on QLPreviewController.


###Steps:

  1. Subclass UIToolbar
  2. Create UINavigationController using init(navigationBarClass:toolbarClass:) and supply UIToolbar subsclass created in step 1 for toolbarClass
  3. Inside of UIToolbar subsclass override setItems(_:animated:). To remove all buttons call super with empty array super.setItems([], animated: false) or potentially you can add only buttons you want to keep.

--


Clone and run example to see it in action.

About

Remove UIToolbar buttons on QLPreviewController

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages