Share the post "How To Call A New View On Select In UITableViewController In iOS Swift"
Typically, table views in iOS apps do something after a user clicks on a row. In ios Swift, you need to add the tableView function that has the didSelectRowAtIndexPath parameter in it.
Then, use the segue ID that you set in the storyboard and call self.performSegueWithIdentifier() to go to the next view.
|
1 2 3 |
override func tableView(tableView: UITableView!, didSelectRowAtIndexPath indexPath: NSIndexPath!) { self.performSegueWithIdentifier("YOUR_SEGUE_ID", sender: self) } |
