Ariel Gemilang Ariel Gemilang - 1 year ago 101
Swift Question

Make done button in M13PDFKit as Back Button

I'm using M13PDFKit. The done button in this image, i want to make it as back button.
enter image description here

Joe Joe
Answer Source

Goto PDFKBasicPDFViewer.m and follow the steps.

Step 1:

enter image description here

Button code:

  self.backButtonTitle = @"Done";
  [buttonsArray addObject:[[UIBarButtonItem alloc] initWithTitle:self.backButtonTitle style:UIBarButtonItemStylePlain target:self action:@selector(dismissed)]];

Step 2:

enter image description here

Dismiss View:

   - (void)dismissed
    [self.navigationController popToRootViewControllerAnimated:YES];


enter image description here

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download