SAP

Manage my Account SAP Devs YouTube ↗ Learnings ↗ Community ↗ Provide Feedback ↗
Logout
⤢ Open full site

Build a Customer List

Build an entity list using SAP BTP SDK for iOS controls. Use storyboard segues to perform navigation between the Overview screen and the customer list.

Overview

You will learn

  • ✔How to reuse View Controller code
Kevin Muessig K Kevin Muessig August 21, 2026
Created on January 9, 2023
Contributors

More from Kevin Muessig

See all 13 tutorials by Kevin Muessig →

Prerequisites

  • Development environment: Apple Mac running macOS Catalina or higher with Xcode 13 or higher
  • SAP BTP SDK for iOS: Version 7.0 or higher

Steps

Details

You will learn

  • How to reuse View Controller code

Step 1 Create a customer list
—

Because you already implemented a similar screen, the Product List, you can copy most of the code from the ProductsTableViewController.swift class.

  1. Before you do that, open the Main.storyboard and use the Object Library to create another Table View Controller and place it directly below the Products Table View Controller.

    !

    Main Storyboard Customer VC
    Main Storyboard Customer VC

  2. Use the project navigator to create a new Table View Controller Cocoa Touch Class TutorialApp > New File ... > Cocoa Touch Class. Name the class CustomersTableViewController.

    !

    Main Storyboard Customer VC
    Main Storyboard Customer VC

  3. Open the Main.storyboard and set the Custom Class of the newly added Table View Controller to CustomersTableViewController.

    !

    Main Storyboard Customer VC
    Main Storyboard Customer VC

Step 2 Implement the customer list
+
Step 3 Create storyboard segue for the customer list
+
Step 4 Implement the prepare for segue method
+

Resources

Discussion

Share feedback on this tutorial or join the conversation in SAP Community.

Submit detailed feedback Discuss in Community
Steps
Step 1 of 4
1. Create a customer list 2. Implement the customer list 3. Create storyboard segue for the customer list 4. Implement the prepare for segue method
Next