SherpaViewController
open class SherpaViewController : UIViewController, UINavigationControllerDelegate, ListViewControllerDelegate
Undocumented
-
Key matching an article to be displayed.
Declaration
Swift
open var articleKey: String? -
Determine if an article matching the given key is available.
Declaration
Swift
open func contains(articleForKey key: String) -> BoolParameters
keyString matching an article within the document.
Return Value
Flag indicating that an article matching the given
keyexists. -
Have an article matching the given key pushed into the navigation hierarchy, if possible.
Declaration
Swift
open func open(articleForKey key: String, animated: Bool)Parameters
keyString matching an article within the document.
animatedFlag indicating whether the view controller transition should be animated.
-
Opens a screen for composing an email to the address from the document at the given
fileURL.Declaration
Swift
public static func openEmail(from fileURL: URL, presentingFrom presentingViewController: UIViewController, animated: Bool)Parameters
fileURLThe file URL for the document to retrieve the Twitter account details from.
presentingViewControllerThe view controller to present from.
animatedFlag indicating whether the view controller transition should be animated.
-
Opens the Twitter handle from the document at the given
fileURL.Declaration
Swift
public static func openTwitter(from fileURL: URL, presentingFrom presentingViewController: UIViewController, animated: Bool)Parameters
fileURLThe file URL for the document to retrieve the Twitter account details from.
presentingViewControllerThe view controller to present from.
animatedFlag indicating whether the view controller transition should be animated.
-
Email address for receiving feedback.
Declaration
Swift
@available(*, deprecated) open var feedbackEmail: String? { get set } -
Twitter account handle for receiving feedback.
Declaration
Swift
@available(*, deprecated) open var feedbackTwitter: String? { get set }
-
Tint color used for indicating links.
Declaration
Swift
open var tintColor: UIColor! { get set } -
Background color for article pages.
Declaration
Swift
open var articleBackgroundColor: UIColor! { get set } -
Text color for article pages.
Declaration
Swift
open var articleTextColor: UIColor! { get set } -
Text color for article pages.
Declaration
Swift
open var articleCSS: String? { get set } -
Register the class used to display article rows in the table view.
Declaration
Swift
@objc(registerTableViewCellClassForArticleRows:) open func registerTableViewCellClass(forArticleRows cellClass: UITableViewCell.Type)Parameters
cellClassThe cell class to use for displaying article rows.
-
Register the class used to display feedback rows in the table view.
Declaration
Swift
@objc(registerTableViewCellClassForFeedbackRows:) open func registerTableViewCellClass(forFeedbackRows cellClass: UITableViewCell.Type)Parameters
cellClassThe cell class to use for displaying feedback rows.
-
Creates a
SherpaViewControllerinstance for the file at the given file URL.Declaration
Swift
public init(fileAtURL fileURL: URL) -
Undocumented
Declaration
Swift
public required init?(coder aDecoder: NSCoder)
-
Undocumented
Declaration
Swift
open override func viewDidLoad() -
Undocumented
Declaration
Swift
open override var navigationItem: UINavigationItem { get } -
Undocumented
Declaration
Swift
open override var childForStatusBarHidden: UIViewController? { get } -
Undocumented
Declaration
Swift
open override var childForStatusBarStyle: UIViewController? { get }
-
Undocumented
Declaration
Swift
open func navigationController(_ navigationController: UINavigationController, willShow viewController: UIViewController, animated: Bool)
-
Undocumented
Declaration
Swift
@objc open func sherpa_dismiss()
View on GitHub
SherpaViewController Class Reference