Using tabbed viewerkeyboard_arrow_down

Using tabbed viewer controller

In this document
This article only applies to Xamarin.iOS.

The PTTabbedDocumentViewController class is a container view controller that hosts multiple PTDocumentViewControllers with a tabbed interface. For more information about the PTDocumentViewController class, please see this guide.

Using PTTabbedDocumentViewController in Xamarin.iOS is identical to using PTTabbedDocumentViewController in iOS. See tutorial here.

linkShowing a tabbed viewer controller

PTTabbedDocumentViewController tabViewController = new PTTabbedDocumentViewController();
UINavigationController navigationController = new UINavigationController(tabViewController);
NSUrl fileURL = NSBundle.MainBundle.GetUrlForResource("sample", "pdf");
NSError error = null;
bool success = tabViewController.OpenDocumentWithURL(fileURL, out error);
if (!success)
    Console.WriteLine("OpenDocumentWithURL failed...");

tabViewController.WillRemoveTabAtIndex += (sender, e) => {
    if (((PTTabbedDocumentViewController)sender).TabURLs.Length > 1)
    ((PTTabbedDocumentViewController)sender).DismissViewController(true, null);

this.PresentViewController(navigationController, true, null);