(iPad, iOS7, xCode5)
I'm using a modal to display .pdf documents, full-screen.
Example: user taps button entitled, "View PDF." Said document is shown using a modal view, full-screen.
How can I add a close button?
I've successfully added a navigation controller, and placed therein a view controller containing the Web View, but then I end up with a long unused strip at the top, with nothing but a "Done" button.
.pdf loads without issue. They display full-screen (inside the Web View, sized to take up the entire viewport).
What I'd like is much like how the MPMoviePlayerController video player class works: Have a menu bar show/hide on a tap gesture.
Alternatively, is there a way to position a "Done" button at the top-right?
- (void)viewDidLoad
{
[super viewDidLoad];
// Do any additional setup after loading the view.
NSString *path = [[NSBundle mainBundle] pathForResource:@"typesOfBrieCheese" ofType:@"pdf"];
NSURL *targetURL = [NSURL fileURLWithPath:path];
NSURLRequest *request = [NSURLRequest requestWithURL:targetURL];
[self.PdfWebView loadRequest:request];
}
Thanks for your help.
Sincerely, Keith :)