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 linesmain.swift179 chars12 linesYou can replace yourFunctionName with any name of your choice. Remember to define the function outside the didSelectRowAt method.
gistlibby LogSnag