Multiple Detail Views in Swift

Screen Shot 2016-07-15 at 2.05.21 AM

 

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)

        }

}

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s