Multiple Detail Views in Swift

 

See Larry my African grey watch and comment on my video. In this video I demonstrate how to call multiple detail views from a single table. This will give you a menu structure like option for different experiences.

 

Here is the code used in the application:

override func tableView(tableView: UITableView,didSelectRowAtIndexPath indexPath: NSIndexPath) {




        if indexPath.row == 1 {

            self.performSegueWithIdentifier("secondView", sender: self)

        } else {

            self.performSegueWithIdentifier(“others", sender: self)

        }

}