playerNavigationView

class playerNavigationView : UIView, UITableViewDelegate, UITableViewDataSource

This is a side bar view for Wikis

Properties

  • The background View

    Declaration

    Swift

    @IBOutlet
    var backgroundView: UIButton!
  • This is a UITableView to hold the Wiki as cells

    Declaration

    Swift

    @IBOutlet
    var tableView: UITableView!
  • Self defined type Wiki

    Declaration

    Swift

    var wiki: Wiki?
  • Table View Content

    Declaration

    Swift

    var tableViewContent: [String]

Methods

Delegates

  • Tells the list of Wikis to return the number of rows in a given section of a table view.

    Declaration

    Swift

    func tableView(_: UITableView, numberOfRowsInSection _: Int) -> Int

    Parameters

    tableView

    The table-view object requesting this information.

    indexPath

    An index number identifying a section in tableView.

    Return Value

    The number of rows in section.

  • Asks the list of Wiki for a cell to insert in a particular location of the table view.

    Declaration

    Swift

    func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell

    Parameters

    tableView

    A table-view object requesting the cell.

    indexPath

    An index path locating a row in tableView.

    Return Value

    An object inheriting from UITableViewCell that the table view can use for the specified row. UIKit raises an assertion if you return nil.

View Lifecycle

  • Prepares the receiver for service after it has been loaded from an Interface Builder archive, or nib file.

    Declaration

    Swift

    override func awakeFromNib()