Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9254213
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T11:24:40+00:00 2026-06-18T11:24:40+00:00

I am using a Master-Detail template. I have a segmented control in the detail

  • 0

I am using a Master-Detail template.
I have a segmented control in the detail view and I have set the MasterViewController as the delegate.
This enables me to give the user choices.
I know the segmented control is working and passing the choices to the MVC.

I want each choice to trigger a new set of data which can then be loaded into the table view in the MasterViewController.
My problem is that I cannot then find a way to update the data in the table view.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-18T11:24:41+00:00Added an answer on June 18, 2026 at 11:24 am

    You can use an instance variable declared in MasterViewController to be updated while UISegmentedControl changes. Based on that, When you come back to the MasterViewController; use its viewWillAppear to [tableView reloadData]

    Tell me if I am getting your question wrong.

    EDIT:

    Take an integer name it segmentIndex; update as and when Segment gets changed. Based on the value of segmentIndex load the dataSource needed to be displayed on UITableView of your MasterViewController

    EDIT 2:

    When UISegmentedControl‘s value changes, put mvc.segmentIndex = (currentValueOfYourSegmentedControl);
    Then in MasterViewController‘s viewWillAppear

    switch (self.segmentIndex)
    {
        case 0:
               // Set Datasource for First Choice.
               break;
        case 0:
               // Set Datasource for Second Choice.
               break;
        case 0:
               // Set Datasource for Third Choice.... and so on...
               break;
        default:
               // Default Behavior
               break;
    }
    

    Hope You Get My Point.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When using a spilt view controller, I have a Master and Detail View. When
I'm using the template master detail application. I have added a modal segue from
I am using x-codes Master-detail template. I have a button in the detailView that
I have some details stored inside an NSDictionary. I'm using a Master-Detail view on
I have a Master-Detail application for iPad. I am using storyboard. When the user
I'm trying to set up a Master/Detail grid using the Grid control from Telerik's
I am using Microsoft SQL Server and I have a master-detail scenario where I
I've got a modal popup (using ModalPopupExtender) working in a kind of master/detail view
I have a form with 2 grids showing records selected using master-detail option on
I am learning ASP.NET and I have a master-detail scenario using two GridViews in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.