Home>

I was wondering when I was learning Swift, but I found many Swift delegate methods with the same name.

func tableView (_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
    <# code #>
  }

  func tableView (_ tableView: UITableView, heightForRowAt indexPath: IndexPath)->CGFloat {
    view.frame.size.height/6
  }


I think that these are different depending on the argument, etc., but is this mechanism unique to the delegate method? Or, this is possible even when creating and calling your own function Would you like ...?
I would be pleased if anyone could advise me.