SAP

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

Build a Product List

Build an entity list using SAP BTP SDK for iOS controls, with storyboard segues for navigation between the overview screen and the product list.

Overview

You will learn

  • ✔How to use storyboard segues to navigate between screens
  • ✔How to prepare a segue to set the title of the destination screen of each navigation
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 use storyboard segues to navigate between screens
  • How to prepare a segue to set the title of the destination screen of each navigation

Step 1 Create the product list screen
—

The Overview screen allows the user to navigate to a list of products or customers using the FUITableViewHeaderFooterView. Both lists are implemented almost exactly the same.

In this tutorial, you will implement the product list first, a FUISearchBar to let the user search for entities in the corresponding list, and navigation from the OverviewTableViewController to the product list screen.

  1. Open the Main.storyboard and use the Object Library like before to drag a new Table View Controller to the storyboard right next to the Overview Table View Controller.

    !

    Main Storyboard Product List
    Main Storyboard Product List

  2. Create a new Cocoa Touch Class using the Project Navigator TutorialApp > New File ... > Cocoa Touch Class . Make sure the new class is inheriting from UITableViewController and give it the name ProductsTableViewController.

    !

    Main Storyboard Product List
    Main Storyboard Product List

  3. Go back to the Main.storyboard and set the Custom Class of the newly added Table View Controller to ProductsTableViewController.

    !

    Main Storyboard Product List
    Main Storyboard Product List

    To enable the user to navigate between screens and passing data between view controllers you can use Storyboard Segues to you advantage. Segues can be created in Interface Builder and are accessible in the View Controllers class through the override prepareForSegue(for:sender:) method.

  4. You should be still in the Main.storyboard, there select the OverviewTableViewController and control + drag to the ProductsTableViewController.

    !

    Main Storyboard Product List
    Main Storyboard Product List

    If you look closely, you can see that the ProductsTableViewController has a Navigation Item now allowing your user to navigate back to the Overview Screen. You get the back navigation out of the box because you’ve embedded the OverviewTableViewController in a Navigation Controller. The arrow between the View Controllers indicates a segue, for you to be able to distinguish multiple segues from each other they, like the Table View Cells, need an identifier.

  5. Select the segue in Interface Builder and click on the Attributes Inspector. As identifier enter showProductsList and hit return.

    !

    Main Storyboard Product List
    Main Storyboard Product List

Step 2 Implement a prepare for segue method
+
Step 3 Implement a product list
+
Step 4 Implement a search bar
+

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 the product list screen 2. Implement a prepare for segue method 3. Implement a product list 4. Implement a search bar
Next