2016-11-02 152 views

回答

1

轉到PDFKBasicPDFViewer.m並按照步驟操作。

步驟1:

enter image description here

按鈕的代碼:

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

步驟2:

enter image description here

辭退查看:

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

輸出:

enter image description here

+0

,它的工作原理 –