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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T01:36:23+00:00 2026-06-01T01:36:23+00:00

Ok I am making a call to a web service to get policies back.

  • 0

Ok I am making a call to a web service to get policies back. The user can have multiple policies, and these policies are to have there own table (Please note not there own section in a table). These tables can have an unknown number of rows in them all depending on the number of amendments to the policy plus the policy itself. So I need to dynamically generate the tables for this onto a UIScrollView. Does anyone know how I can do this? If you don’t understand me then please ask.

  • 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-01T01:36:24+00:00Added an answer on June 1, 2026 at 1:36 am

    You can create UITableViews programmatically with

    UITableView *tableView = [[UITableView alloc] init];
    

    then set the view controller to be the delegate and data source of the table view:

    tableView.delegate = self;
    tableView.dataSource = self;
    

    and add the table view to your scroll view like such:

    tableView.frame = CGRectMake(0, 0, 320, 500); //use whatever frame you want here
    [self.scrollView addSubview:tableView];
    

    and in order to keep track of the table views, you can use the tag associated with each one. These are probably best defined as constants at the top of your .m file. You can name them appropriately so you know what policy the table view is supposed to be for. For example, at the top of your .m file:

    #define kFirstPolicyTableViewTag 1
    

    and then when creating the table view:

    tableView.tag = kFirstPolicyTableViewTag;
    

    then, when dealing with any of the delegate or data source methods, check the tag so you know which one you are dealing with. For example:

    - (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section {
        switch (tableView.tag) {
            case kFirstPolicyTableViewTag: {
                //return the number of rows for that tag
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm making a RESTful web service call in my JavaScript page and get the
I am making a call to a web service, the results of the web
When making a call to a web service running on a server using HTTPS
A partner of ours is making a call to a web service that includes
making a call to a web service method with nusoap returns an error array(3)
I am making a JQuery ajax call to a web service like so: $.ajax({
I have a web service someWebServiceOnServer that sends back a json response and a
I ran into the situation where my class is making one asynchronous web call
I'm making call to Alfresco Webscripts which return JSON. I do this using GET
I have a main page from where I am making a call to load

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.