1

I am subclassing QLPreviewController in my application and using the following code.

var pController = new PdfPreviewController();
pController.Datasource = ----

this.MainDelegate.NavigationController.PushViewController(pController ,true);

public class PdfPreviewController: QLPreviewController
{
   public override void ViewWillAppear(bool animated){
     base.ViewWillApper(animated);
     this.NavigationItem.RightBarButtonItem =null;
}

}

But with this code, I am not able to hide share/action button which appears at bottom. In iOS 9.X it works perfectly but in 10.X onward this code is broken. Please help.enter image description here

San9211
  • 191
  • 1
  • 12

1 Answers1

0

For iOS 10.X onward & for iPhone u can use[[self.navigationController toolbar] setHidden:YES]; This is objective C code u can do similar in Your case.I am able to hide share/action button which appears at bottom using this line of Code.

Dhananjay Jadhav
  • 177
  • 1
  • 2
  • 13