playerNavigationView
class playerNavigationView : UIView, UITableViewDelegate, UITableViewDataSource
This is a side bar view for Wiki
s
-
The background View
Declaration
Swift
@IBOutlet var backgroundView: UIButton!
-
This is a
UITableView
to hold theWiki
as cellsDeclaration
Swift
@IBOutlet var tableView: UITableView!
-
Table View Content
Declaration
Swift
var tableViewContent: [String]
-
Customise the cell
Declaration
Swift
func customisation()
-
Hide the side bar
Declaration
Swift
@IBAction func hideNavigationView(_: Any)
-
Tells the list of
Wiki
s 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
UITableViewCel
l that the table view can use for the specified row.UIKit
raises an assertion if you return nil.
-
Prepares the receiver for service after it has been loaded from an Interface Builder archive, or nib file.
Declaration
Swift
override func awakeFromNib()