FeaturesViewController
class FeaturesViewController : BaseTableViewController
extension FeaturesViewController: FeaturesPresenterDelegate
VC that holds the list of features of the app
-
Custom init.
Declaration
Swift
init(presenter: FeaturesPresenting = FeaturesPresenter())
Parameters
presenter
the presenter for the vc
-
Required init by the compiler.
Declaration
Swift
required init?(coder: NSCoder)
-
Called after the controller’s view is loaded into memory.
Declaration
Swift
override func viewDidLoad()
-
Notifies the view controller that its view is about to be added to a view hierarchy.
Declaration
Swift
override func viewWillAppear(_ animated: Bool)
-
Asks the data source to return the number of sections in the table view.
Declaration
Swift
override func numberOfSections(in tableView: UITableView) -> Int
-
Tells the data source to return the number of rows in a given section of a table view.
Declaration
Swift
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
-
Asks the data source for a cell to insert in a particular location of the table view.
Declaration
Swift
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell
-
Tells the delegate a row is selected.
Declaration
Swift
override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath)
-
Asks the delegate for the height to use for a row in a specified location.
Declaration
Swift
override func tableView(_ tableView: UITableView, heightForRowAt indexPath: IndexPath) -> CGFloat
-
Asks the delegate for a view to display in the header of the specified section of the table view.
Declaration
Swift
override func tableView(_ tableView: UITableView, viewForHeaderInSection section: Int) -> UIView?