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 9158857
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T13:21:01+00:00 2026-06-17T13:21:01+00:00

FYI – Noob iOS developer here. My current setup is a UIViewController with a

  • 0

FYI – Noob iOS developer here.

My current setup is a UIViewController with a UIView within, then a UITableView within the UIVIew. So it goes like this…

UIViewController --> UIView --> UITableView

The reason for this is because I have other elements wrapped with the tableview. The UIViewController loads dynamic content into the table view. I have a segmented Control in which I want to use to switch the content within the table view.

I’ve read something on [table reload] and [table beginUpdate] but don’t understand how to use it. Any help would be great.

  • 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-17T13:21:03+00:00Added an answer on June 17, 2026 at 1:21 pm

    Ok, so [table reloadData] will reload the data (so if you change the data and want to update the table with the necessary data call this), but straight after you call that make sure to call [table setNeedsDisplay] to refresh the UI.[table beginUpdates]
    begins a series of method calls that insert, delete, or select rows and sections of the receiver. You end the processes with [table endUpdates];

    Make sure you set your table view’s dataSource and delegate to self, this can be done through the xib and programmatically like this:

    [table setDelegate: self];
    

    or

    [table setDataSource: self];
    

    As said:

    Call this delegate method for UISegmentedControl

        - (void)segmentedControl:(UISegmentedControl*)segmentedControl didSelectIndex:(NSUInteger)selectedIndex
    {
       if(selectedIndex == 0)
       {
         // Update the data
       }
       else if(selectedIndex == 1)
       {
         // Update the data
       }
    
       [table reloadData];
       [table setNeedsDisplay];
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

here are some type definitions in my program FYI: type BitString -> String type
From command line, I'd like to take a script from my paste board (FYI:
FYI: I'm fairly new to ggplot2 and ggmap so I apologize for the sloppy
FYI I'm programming in objective-C but anyone might be able to help. I've been
FYI, There is some overlap in the initial description of this question with a
Ok, so I have the code below (Objective-C FYI) and I was wondering if
Could anyone please tell me why is the assert failing ? FYI: I'm compiling
[FYI: I've got the answer, and I'm in process of writing the solution. This
(FYI, the bug occurs on the official demos as well as my own demos
* FYI: I'm not using Adsense and this is not against my TOS... I

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.