Consider the following snippet that displays a custom view controller from UITableViewController.
class Controller: UITableViewController {
...
)
extension Controller {
override func tableView(tableView: UITableView, numberOfRowsInSection section: Int) -> Int {
...
}
}
extension Controller {
override func tableView(tableView: UITableView, willBeginEditingRowAtIndexPath indexPath: NSIndexPath) {
...
}
}
The documentation says:
You can override loadView or any other method of the superclass, but if you really call the implementation of the superclass of the method, usually like calling the first method.
My question is, does this also apply to the methods in the protocols UITableViewDataSourceand UITableViewDelegateto which it matches UITableViewController?
super , , . . , super willBeginEditingRowAtIndexPath, , .