Make done button in M13PDFKit as Back Button

走远了吗. 提交于 2019-12-12 03:03:46

问题


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


回答1:


Goto PDFKBasicPDFViewer.m and follow the steps.

Step 1:

Button code:

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

Step 2:

Dismiss View:

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

Output:



来源:https://stackoverflow.com/questions/40380661/make-done-button-in-m13pdfkit-as-back-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!