When vClose method is called, the pdf will be saved if necessary. The vClose method is called in RDPDFViewController, viewWillDisappear method.
If I correctly understood, in your project you can open a pdf file, but you can't close it with your button, right?
Another thing that you should fix is - (void)dismissReaderViewController:(RDPDFViewController *)viewController definition.
if you call that method with the "done" button, it will pass itself as parameter, not RDPDFViewController; so, your method should be:
- (void)dismissReaderViewController
{
....
}
the RDPDFViewController instance is unused in your implementation.
in this way you can restore the previous declaration of the done button (@selector(dismissReaderViewController)) without ":".
Another question: openPDF and dismissReaderViewController methods, are implemented in the same class? If not, you should do it (it could be the most important reason).
Hope it could help