Expandable table menu to new View Controller in Xcode

expandable table view swift github
expand uitableviewcell when tapped swift
expandable table view cell swift 5
swift expandable view
expandable and collapsible sections uitableview
expandable tableview swift 4 stackoverflow
expanding/collapsing uitableview sections github swift
expandable table view ios objective c

How can I link the menu name "Canada" in my expandable table menu to a new View Controller named "Canada", and then the menu name "Denmark" to a View Controller named "Denmark" and so on in my Xcode-project?

Here is my code and some pictures.

class ViewController: UIViewController, UITableViewDelegate, UITableViewDataSource, ExpandableHeaderViewDelegate {

@IBOutlet weak var tableView: UITableView!

var sections = [
Section(genre: "North America",
        menytitel: ["USA", "Canada"],
        expanded: false),
Section(genre: "Europe",
        menytitel: ["Sweden", "Finland", "Denmark", "Ireland"],
        expanded: false),
Section(genre: "Africa",
        menytitel: ["Egypt", "Marocko"],
        expanded: false),

func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "labelCell")!
cell.textLabel?.text = sections[indexPath.section].menytitel[indexPath.row]
return cell
class TestTableViewController: UITableViewController {
    override func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
        guard let section = sections[indexPath.section] as? Section,
            let title = section.menytitel[indexPath.row] as? String else { return }

        switch title {
        case title == "Denmark":
            let denmarkVC = UIViewController()
            present(denmarkVC, animated: true, completion: nil)

Expandable table menu to new View …, Expandable table menu to new View Controller and then the menu name " Denmark" to a View Controller named "Denmark" and so on in my Xcode-project ? A table view data source, which is responsible for managing the data in a table view, including table view cells and sections. A data source is an instance of the UITableViewDataSource class. A navigation controller is often used in conjuction with a table view controller to enable navigation between the table view and subsequent view

Sorry I can't figure out where to put this code

Expandable table menu to new View Controller in Xcode, class TestTableViewController: UITableViewController { override func tableView( _ tableView: UITableView, didSelectRowAt indexPath:� How to pass data from view controller to table view controller? and also how to store the selected data to the table view controller? but The output shows multiple row, how to make it based on the

Here is my picture of all the failures.

How To Create an Expandable Table View in iOS, With them, it's not necessary to create new view controllers just to ask users for data that in any case should exist in one, default view controller. Expandable UITableView in iOS with Swift A common feature of almost all apps is the fact that they provide multiple view controllers to users to navigate and work with. Those view controllers can be used in many ways, such as to simply display some kind of information on-screen, or to gather complex data from user input.

Expanding Table View Cells! (Swift 4 in Xcode), Today we dive into creating table view cells that expand! It's a pretty simple yet really cool Duration: 13:01 Posted: Apr 6, 2018 I want to display data in table view cell. In first view Controller, I displayed a view controller and then user select the contacts. The selected contacts displayed in table format along with money. so those contacts name and money passed to next controller. In Next controller, I took the table view and table cell.

Expandable and Collapsible Sections UITableView (Ep 3), Expandable and Collapsible Sections UITableView (Ep 3) iOS Basic Training Course https Duration: 20:47 Posted: Nov 19, 2017 Expandable Table View CRS-IUA’s UI design calls for table cells that can be expanded, that is, made taller when touched. Tables with expanding cells can be found in several areas of the UI, including the shopping cart view and the login screen.

UITableViewController - iOS & Swift Tutorial, Configure table contents using the Storyboard. Open Main.storyboard and drag in a new Table View Controller from the Object Library:. The table view controller is set as the initial view controller in your storyboard, making the meal list the first scene that loads on app launch. Checkpoint: Run your app. Instead of the meal detail scene with its text field, image view, and rating control, you should now see an empty table view—a screen with a number of horizontal dividers

  • pass section title to new viewController and in new viewcontroller's viewdidload method write self.title = "section titile".
  • Do you have ViewController of each of the Item names or you want to handle all items by one ViewController