How to hide share button in QLPreviewController using swift?

前端 未结 7 2157
无人共我
无人共我 2021-01-06 02:40

I\'m using the below code to use QLPreviewcontroller to show some documents in my app,

let ql = QLPreviewController()
ql.dataSource = self
//ql.navigationIte         


        
7条回答
  •  [愿得一人]
    2021-01-06 03:14

    If Still, anyone wants to remove share option or want to customize the Navigation bar of QLPreviewController then they can try creating a UIViewController and customize it as per requirement and then create QLPreviewController object and add it as a child view controller.

    This will allow you to get rid of share button and you customize navigation bar color etc. this is working for me.

    To know, how to add child view controller you can refer to this

提交回复
热议问题