PTDocumentBaseViewController

A view controller that displays a PTPDFViewCtrl along with other controls.

  • Returns an initialized PTDocumentBaseViewController.

    Declaration

    Objective-C

    - (nonnull instancetype)init;

    Swift

    init()

    Return Value

    an initialized PTDocumentBaseViewController.

  • Open a document with the given URL.

    Declaration

    Objective-C

    - (void)openDocumentWithURL:(nonnull NSURL *)url;

    Swift

    func openDocument(with url: URL)

    Parameters

    url

    The URL to open.

  • Open a document with the given URL and password.

    Declaration

    Objective-C

    - (void)openDocumentWithURL:(nonnull NSURL *)url
                       password:(nullable NSString *)password;

    Swift

    func openDocument(with url: URL, password: String?)

    Parameters

    url

    The URL to open.

    password

    The password for the document.

  • Open the given PTPDFDoc.

    Declaration

    Objective-C

    - (void)openDocumentWithPDFDoc:(nonnull PTPDFDoc *)document;

    Swift

    func openDocument(with document: PTPDFDoc)

    Parameters

    document

    The PTPDFDoc to open.

  • PTHTTPRequestOptions that will be used when requesting remote documents over HTTP. These can be used to set additional HTTP headers and control if a linearized document should be downloaded in its entirety, or only the parts that are viewed.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic, nonnull)
        PTHTTPRequestOptions *httpRequestOptions;

    Swift

    var httpRequestOptions: PTHTTPRequestOptions { get set }
  • Specifies additional http headers which will be set on outgoing requests and when requesting remote documents over HTTP.

    Headers specified in this dictionary will overwrite any (matching) existing headers in the httpRequestOptions property.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSDictionary<NSString *, NSString *> *additionalHTTPHeaders;

    Swift

    var additionalHTTPHeaders: [String : String]? { get set }
  • Options that will be used when converting documents with the PTConvert APIs via the -openDocumentWithURL: method.

    Declaration

    Objective-C

    @property (readwrite, strong, nonatomic)
        PTConversionOptions *_Nonnull conversionOptions;

    Swift

    var conversionOptions: PTConversionOptions { get set }
  • The PTPDFDoc if the viewer is displaying a document opened with openDocumentWithPDFDoc:.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable) PTPDFDoc *document;

    Swift

    var document: PTPDFDoc? { get }
  • The PTCoordinatedDocument if the viewer opens a local file with openDocumentWithURL:.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic, nullable)
        PTCoordinatedDocument *coordinatedDocument;

    Swift

    var coordinatedDocument: PTCoordinatedDocument? { get }
  • Save the current document with the specified options.

    Declaration

    Objective-C

    - (void)saveDocument:(PTSaveOptions)saveOptions
        completionHandler:(nullable void (^)(BOOL))completionHandler;

    Swift

    func saveDocument(_ saveOptions: PTSaveOptions, completionHandler: ((Bool) -> Void)? = nil)

    Parameters

    saveOptions

    The options to save the document with.

    completionHandler

    A block with code that is executed when the save operation concludes. The block returns no value, and the success param is YES if the save operation succeeds, otherwise NO.

  • The view controller’s underlying PTPDFViewCtrl.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) PTPDFViewCtrl *_Nonnull pdfViewCtrl;

    Swift

    var pdfViewCtrl: PTPDFViewCtrl { get }
  • The tool manager attached to the underlying PTPDFViewCtrl.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic) PTToolManager *_Nonnull toolManager;

    Swift

    var toolManager: PTToolManager { get }
  • Whether changes in the document are saved automatically. The default value is YES. The document is saved on best-effort basis on a timer with a period of automaticDocumentSavingInterval. The document is also saved when the app resigns the foreground, or this ViewController’s view disappears.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL automaticallySavesDocument;

    Swift

    var automaticallySavesDocument: Bool { get set }
  • The interval in seconds that the document is automatically saved.

    The default value is PTDocumentViewControllerSaveDocumentInterval.

    Setting the interval to DBL_MAX disables the timer entirely.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        NSTimeInterval automaticDocumentSavingInterval;

    Swift

    var automaticDocumentSavingInterval: TimeInterval { get set }
  • Restart the automatic document saving timer with the interval specified in the automaticDocumentSavingInterval property.

    Declaration

    Objective-C

    - (void)restartAutomaticDocumentSavingTimer;

    Swift

    func restartAutomaticDocumentSavingTimer()
  • Restart the automatic document saving timer with the specified interval.

    The automaticDocumentSavingInterval property is updated with the specified interval.

    Declaration

    Objective-C

    - (void)restartAutomaticDocumentSavingTimerWithInterval:
        (NSTimeInterval)interval;

    Swift

    func restartAutomaticDocumentSavingTimer(withInterval interval: TimeInterval)

    Parameters

    interval

    The interval to use for automatic document saving.

  • Stop the automatic document saving timer.

    Declaration

    Objective-C

    - (void)stopAutomaticDocumentSavingTimer;

    Swift

    func stopAutomaticDocumentSavingTimer()
  • Closes the document after saving with the -saveDocument:completionHandler: method.

    Declaration

    Objective-C

    - (void)closeDocumentWithCompletionHandler:
        (nullable void (^)(BOOL))completionHandler;

    Swift

    func closeDocument(completionHandler: ((Bool) -> Void)? = nil)

    Parameters

    completionHandler

    Called when the document has been successfully or unsuccessfully closed as indicated by the success handler.

  • Whether tapping on the right or left edges of the page in single page-presentation mode (non-continuous) will change the current page to the next or previous page, respectively.

    The default value of this property is YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL changesPageOnTap;

    Swift

    var changesPageOnTap: Bool { get set }
  • Whether night mode is enabled for the pdfViewCtrl. The default value is NO.

    Declaration

    Objective-C

    @property (getter=isNightModeEnabled, assign, readwrite, nonatomic)
        BOOL nightModeEnabled;

    Swift

    var isNightModeEnabled: Bool { get set }
  • Controls if the ThumbnailSlider is enabled.

    Declaration

    Objective-C

    @property (getter=isBottomToolbarEnabled, assign, readwrite, nonatomic)
        BOOL bottomToolbarEnabled;

    Swift

    var isBottomToolbarEnabled: Bool { get set }
  • Controls if the thumbnailSliderController is enabled.

    The default value is NO.

    Declaration

    Objective-C

    @property (getter=isThumbnailSliderEnabled, assign, readwrite, nonatomic)
        BOOL thumbnailSliderEnabled;

    Swift

    var isThumbnailSliderEnabled: Bool { get set }
  • Controls if the PTPageIndicatorViewController is enabled. The default value is YES.

    Declaration

    Objective-C

    @property (getter=isPageIndicatorEnabled, assign, readwrite, nonatomic)
        BOOL pageIndicatorEnabled;

    Swift

    var isPageIndicatorEnabled: Bool { get set }
  • Whether the PTPageIndicatorViewController is shown when the current page changes. The default value is YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL pageIndicatorShowsOnPageChange;

    Swift

    var pageIndicatorShowsOnPageChange: Bool { get set }
  • Whether the PTPageIndicatorViewController is shown with the navigation bar and toolbars. The default value is YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL pageIndicatorShowsWithControls;

    Swift

    var pageIndicatorShowsWithControls: Bool { get set }
  • Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        UIBarButtonItem *_Nonnull readerModeButtonItem;

    Swift

    var readerModeButtonItem: UIBarButtonItem { get }
  • Shows the PTTextSearchViewController toolbar for text search.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        UIBarButtonItem *_Nonnull searchButtonItem;

    Swift

    var searchButtonItem: UIBarButtonItem { get }
  • Shows options for exporting the document.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        UIBarButtonItem *_Nonnull exportButtonItem;

    Swift

    var exportButtonItem: UIBarButtonItem { get }
  • Shows a UIDocumentInteractionController for the current document.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        UIBarButtonItem *_Nonnull shareButtonItem;

    Swift

    var shareButtonItem: UIBarButtonItem { get }
  • Shows a PTSettingsViewController to control the view settings.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        UIBarButtonItem *_Nonnull settingsButtonItem;

    Swift

    var settingsButtonItem: UIBarButtonItem { get }
  • Shows a PTThumbnailsViewController for the current document.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        UIBarButtonItem *_Nonnull thumbnailsButtonItem;

    Swift

    var thumbnailsButtonItem: UIBarButtonItem { get }
  • Shows a PTNavigationListsViewController with outline, annotations, and bookmarks view controllers.

    Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        UIBarButtonItem *_Nonnull navigationListsButtonItem;

    Swift

    var navigationListsButtonItem: UIBarButtonItem { get }
  • Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        UIBarButtonItem *_Nonnull moreItemsButtonItem;

    Swift

    var moreItemsButtonItem: UIBarButtonItem { get }
  • Declaration

    Objective-C

    @property (readonly, strong, nonatomic)
        UIBarButtonItem *_Nonnull addPagesButtonItem;

    Swift

    var addPagesButtonItem: UIBarButtonItem { get }
  • Controls the visibility of the readerModeButtonItem in the navigation bar, bottom toolbar, and more items list.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (getter=isReaderModeButtonHidden, assign, readwrite, nonatomic)
        BOOL readerModeButtonHidden;

    Swift

    var isReaderModeButtonHidden: Bool { get set }
  • Controls the visibility of the settingsButtonItem in the navigation bar, bottom toolbar, and more items list.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (getter=isViewerSettingsButtonHidden, assign, readwrite, nonatomic)
        BOOL viewerSettingsButtonHidden;

    Swift

    var isViewerSettingsButtonHidden: Bool { get set }
  • Controls the visibility of the shareButtonItem in the navigation bar, bottom toolbar, and more items list.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (getter=isShareButtonHidden, assign, readwrite, nonatomic)
        BOOL shareButtonHidden;

    Swift

    var isShareButtonHidden: Bool { get set }
  • Controls the visibility of the searchButtonItem in the navigation bar, bottom toolbar, and more items list.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (getter=isSearchButtonHidden, assign, readwrite, nonatomic)
        BOOL searchButtonHidden;

    Swift

    var isSearchButtonHidden: Bool { get set }
  • Controls the visibility of the export button in the navigation bar, bottom toolbar, and more items list.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (getter=isExportButtonHidden, assign, readwrite, nonatomic)
        BOOL exportButtonHidden;

    Swift

    var isExportButtonHidden: Bool { get set }
  • Controls the visibility of the moreItemsButtonItem in the navigation bar, bottom toolbar, and more items list.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (getter=isMoreItemsButtonHidden, assign, readwrite, nonatomic)
        BOOL moreItemsButtonHidden;

    Swift

    var isMoreItemsButtonHidden: Bool { get set }
  • Controls the visibility of the addPagesButtonItem in the navigation bar, bottom toolbar, and more items list.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (getter=isAddPagesButtonHidden, assign, readwrite, nonatomic)
        BOOL addPagesButtonHidden;

    Swift

    var isAddPagesButtonHidden: Bool { get set }
  • Controls the visibility of the thumbnailsButtonItem in the navigation bar, bottom toolbar, and more items list.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (getter=isThumbnailBrowserButtonHidden, assign, readwrite, nonatomic)
        BOOL thumbnailBrowserButtonHidden;

    Swift

    var isThumbnailBrowserButtonHidden: Bool { get set }
  • Controls the visibility of the navigationListsButtonItem in the navigation bar, bottom toolbar, and more items list.

    The default value of this property is NO.

    Declaration

    Objective-C

    @property (getter=isNavigationListsButtonHidden, assign, readwrite, nonatomic)
        BOOL navigationListsButtonHidden;

    Swift

    var isNavigationListsButtonHidden: Bool { get set }
  • The toolbar items associated with the view controller.

    The getter for this property returns -toolbarItemsForSizeClass: for the current horizontal user interface size class, and the setters uses -setToolbarItems:forSizeClass:animated: to set the toolbar items for all user interface size classes.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSArray<UIBarButtonItem *> *toolbarItems;

    Swift

    var toolbarItems: [UIBarButtonItem]? { get set }
  • Returns the toolbarItems for the given horizontal user interface size class.

    Declaration

    Objective-C

    - (nullable NSArray<UIBarButtonItem *> *)toolbarItemsForSizeClass:
        (UIUserInterfaceSizeClass)sizeClass;

    Swift

    func toolbarItems(for sizeClass: UIUserInterfaceSizeClass) -> [UIBarButtonItem]?

    Parameters

    sizeClass

    the horizontal user interface size class for which to get the list of items

    Return Value

    the toolbarItems for the given horizontal user interface size class

  • Sets the toolbarItems used for the given horizontal size class.

    Declaration

    Objective-C

    - (void)setToolbarItems:(nullable NSArray<UIBarButtonItem *> *)toolbarItems
               forSizeClass:(UIUserInterfaceSizeClass)sizeClass
                   animated:(BOOL)animated;

    Swift

    func setToolbarItems(_ toolbarItems: [UIBarButtonItem]?, for sizeClass: UIUserInterfaceSizeClass, animated: Bool)

    Parameters

    toolbarItems

    the toolbar items to use

    sizeClass

    the horizontal user interface size class

    animated

    whether to animate the change

  • The items currently shown by the moreItemsViewController in a list-style interface for the current trait collection.

    The getter for this property returns -moreItemsForSizeClass: for the current horizontal user inteface size class, and the setter uses -setMoreItems:forSizeClass: to set the items for all user interface size classes.

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, nullable)
        NSArray<UIBarButtonItem *> *moreItems;

    Swift

    var moreItems: [UIBarButtonItem]? { get set }
  • Returns the moreItems shown by the moreItemsViewController for the given horizontal user interface size class.

    Declaration

    Objective-C

    - (nullable NSArray<UIBarButtonItem *> *)moreItemsForSizeClass:
        (UIUserInterfaceSizeClass)sizeClass;

    Swift

    func moreItems(for sizeClass: UIUserInterfaceSizeClass) -> [UIBarButtonItem]?

    Parameters

    sizeClass

    the horizontal user interface size class for which to get the list of items

    Return Value

    the items shown by the moreItemsViewController for the given horizontal user interface size class

  • Sets the moreItems shown by the moreItemsViewController for the given horizontal user interface size class.

    Declaration

    Objective-C

    - (void)setMoreItems:(nullable NSArray<UIBarButtonItem *> *)moreItems
            forSizeClass:(UIUserInterfaceSizeClass)sizeClass;

    Swift

    func setMoreItems(_ moreItems: [UIBarButtonItem]?, for sizeClass: UIUserInterfaceSizeClass)

    Parameters

    moreItems

    the items to show

    sizeClass

    the horizontal user interface size class

  • Whether the navigation bar, toolbars, and other controls are hidden. The default value is NO.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL controlsHidden;

    Swift

    var controlsHidden: Bool { get set }
  • Sets whether the controls are hidden.

    For animated transitions, the duration of the animation is specified by the value in the UINavigationControllerHideShowBarDuration constant.

    Declaration

    Objective-C

    - (void)setControlsHidden:(BOOL)hidden animated:(BOOL)animated;

    Swift

    func setControlsHidden(_ hidden: Bool, animated: Bool)

    Parameters

    hidden

    Specify YES to hide the controls or NO to show them

    animated

    Specify YES if you want to animate the change in visibility or NO if you want the controls to appear immediately.

  • Whether the find text toolbar is hidden. The default value is NO.

    Declaration

    Objective-C

    @property (getter=isSearchViewControllerHidden, assign, readwrite, nonatomic)
        BOOL searchViewControllerHidden;

    Swift

    var isSearchViewControllerHidden: Bool { get set }
  • Whether the thumbnail slider control is hidden. The default value is NO.

    Declaration

    Objective-C

    @property (getter=isThumbnailSliderHidden, assign, readwrite, nonatomic)
        BOOL thumbnailSliderHidden;

    Swift

    var isThumbnailSliderHidden: Bool { get set }
  • Sets whether the thumbnail slider control is hidden.

    For animated transitions, the duration of the animation is specified by the value in the UINavigationControllerHideShowBarDuration constant.

    Declaration

    Objective-C

    - (void)setThumbnailSliderHidden:(BOOL)hidden animated:(BOOL)animated;

    Swift

    func setThumbnailSliderHidden(_ hidden: Bool, animated: Bool)

    Parameters

    hidden

    Specify YES to hide the thumbnail slider or NO to show it

    animated

    Specify YES if you want to animate the change in visibility or NO if you want the control to appear immediately

  • Whether the page indicator control is hidden. The default value is YES.

    Declaration

    Objective-C

    @property (getter=isPageIndicatorHidden, assign, readwrite, nonatomic)
        BOOL pageIndicatorHidden;

    Swift

    var isPageIndicatorHidden: Bool { get set }
  • Sets whether the page indicator control is hidden.

    Declaration

    Objective-C

    - (void)setPageIndicatorHidden:(BOOL)hidden animated:(BOOL)animated;

    Swift

    func setPageIndicatorHidden(_ hidden: Bool, animated: Bool)

    Parameters

    hidden

    Specify YES to hide the page indicator or NO to show it.

    animated

    Specify YES if you want to animate the change in visibility or NO if you want the control to appear immediately.

  • Whether the reflow control is hidden. The default value is YES.

    Declaration

    Objective-C

    @property (getter=isReflowHidden, assign, readwrite, nonatomic)
        BOOL reflowHidden;

    Swift

    var isReflowHidden: Bool { get set }
  • Whether the controls are toggled in response to an otherwise unhandled tap. The default value is YES.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL hidesControlsOnTap;

    Swift

    var hidesControlsOnTap: Bool { get set }
  • Whether the controls are hidden automatically after a period of time. The default value is NO.

    The automaticControlHidingDelay is used to specify the time delay.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL automaticallyHidesControls;

    Swift

    var automaticallyHidesControls: Bool { get set }
  • Whether the controls are hidden automatically after a period of time. The default value is NO.

    The automaticControlHidingDelay is used to specify the time delay.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL automaticallyHideToolbars;

    Swift

    var automaticallyHideToolbars: Bool { get set }
  • The number of seconds to wait before automatically hiding the controls. The default value is PTDocumentViewControllerHideControlsInterval.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic)
        NSTimeInterval automaticControlHidingDelay;

    Swift

    var automaticControlHidingDelay: TimeInterval { get set }
  • Restart the automatic control hiding timer with the delay specified in the automaticControlHidingDelay property.

    Declaration

    Objective-C

    - (void)restartAutomaticControlHidingTimer;

    Swift

    func restartAutomaticControlHidingTimer()
  • Restart the automatic control hiding timer with the specified delay.

    The automaticControlHidingDelay property is updated with the specified delay.

    Declaration

    Objective-C

    - (void)restartAutomaticControlHidingTimerWithDelay:(NSTimeInterval)delay;

    Swift

    func restartAutomaticControlHidingTimer(withDelay delay: TimeInterval)

    Parameters

    delay

    The delay to use for automatic control hiding.

  • Stop the automatic control hiding timer.

    Declaration

    Objective-C

    - (void)stopAutomaticControlHidingTimer;

    Swift

    func stopAutomaticControlHidingTimer()
  • Whether the controls should be hidden in response to the given timer firing.

    The default implementation of this method returns the value of the automaticallyHideToolbars property.

    Declaration

    Objective-C

    - (BOOL)shouldHideControlsFromTimer:(nonnull NSTimer *)timer;

    Swift

    func shouldHideControls(from timer: Timer) -> Bool
  • Returns an object initialized from data in a given unarchiver.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCoder:(nonnull NSCoder *)coder;

    Swift

    init(coder: NSCoder)
  • This method is called when a document has been successfully opened in this view controller.

    Declaration

    Objective-C

    - (void)didOpenDocument;

    Swift

    func didOpenDocument()
  • This method is called when a document could not be opened in this view controller.

    Declaration

    Objective-C

    - (void)handleDocumentOpeningFailureWithError:(nullable NSError *)error;

    Swift

    func handleDocumentOpeningFailureWithError(_ error: Error?)

    Parameters

    error

    The error object describing the failure. May be nil if information regarding the failure was not available

  • This method is called when the view controller enters an invalid state.

    In response, the document could be re-opened or this view controller could be closed or dismissed.

    Declaration

    Objective-C

    - (void)didBecomeInvalid;

    Swift

    func didBecomeInvalid()
  • Returns whether the cached document at the given temporary URL should be exported to a different permanent location. The temporary URL does not point to a user-visible location and if the cached document is not exported it may be deleted by the system at any time.

    The default implementation of this method returns YES.

    Declaration

    Objective-C

    - (BOOL)shouldExportCachedDocumentAtURL:(nonnull NSURL *)cachedDocumentURL;

    Swift

    func shouldExportCachedDocument(at cachedDocumentURL: URL) -> Bool

    Parameters

    cachedDocumentURL

    the temporary URL of the cached document

    Return Value

    YES if the cached document should be exported, NO otherwise.

  • Returns the destination URL for the document at the given source URL location. If nil is returned from this method, the document will be copied to the user-visible Documents directory inside the containing app’s sandbox.

    The default implementation of this method returns nil.

    Declaration

    Objective-C

    - (nullable NSURL *)destinationURLforDocumentAtURL:(nonnull NSURL *)sourceURL;

    Swift

    func destinationURLforDocument(at sourceURL: URL) -> URL?

    Parameters

    sourceURL

    The source URL of the document

    Return Value

    the destination URL for the document

  • Returns whether the cached document at the given URL should be deleted. If the cached document has been exported to a different location, as indicated by the -shouldExportCachedDocumentAtURL: and -destinationURLforDocumentAtURL: methods, the original copy of the document can be deleted by returning YES for this method.

    If it is desired that HTTP(S) documents should not be re-downloaded unless necessary (ie. unless the remote file has changed since it was last downloaded), then the cached document should not be deleted.

    The default implementation of this method returns NO.

    Declaration

    Objective-C

    - (BOOL)shouldDeleteCachedDocumentAtURL:(nonnull NSURL *)cachedDocumentURL;

    Swift

    func shouldDeleteCachedDocument(at cachedDocumentURL: URL) -> Bool

    Parameters

    cachedDocumentURL

    The URL of the cached document

  • Returns whether the controls should be hidden in response to a timer (if the automaticallyHidesControls property is enabled) or user tap (if the hidesControlsOnTap property is enabled).

    The default implementation of this method returns YES if this view controller is not currently presenting another view controller and does not have another modal-type control active.

    Declaration

    Objective-C

    - (BOOL)shouldHideControls;

    Swift

    func shouldHideControls() -> Bool

    Return Value

    YES if the view controller’s controls should be hidden, NO otherwise

  • Returns whether the view controller’s controls should be shown in response to a user tap (if the hidesControlsOnTap property is enabled).

    The default implementation of this method return YES if this view controller’s containing UINavigationController currently has its navigation bar hidden and no other view controllers are currently presented.

    Declaration

    Objective-C

    - (BOOL)shouldShowControls;

    Swift

    func shouldShowControls() -> Bool

    Return Value

    YES if the view controller’s controls should be shown, NO otherwise.