To give a function in didSelectRowAt
method of a UITableView in Swift, follow the steps below:
didSelectRowAt
method of the UITableViewDelegate in your ViewController:main.swift258 chars13 lines
main.swift179 chars12 lines
You can replace yourFunctionName
with any name of your choice. Remember to define the function outside the didSelectRowAt
method.
gistlibby LogSnag