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

  • Home
  • SEARCH
  • 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 6900157
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T07:30:39+00:00 2026-05-27T07:30:39+00:00

I want that on each page the table will appear. The table will be

  • 0

I want that on each page the table will appear. The table will be of the same structure but with the different data on each page. I want that the UIPageControl visualize the current page. How to do it?
Using UITableviewController I will be able to update the data in the tables.
UITableview has the parameter: paging enable.

  • 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-05-27T07:30:40+00:00Added an answer on May 27, 2026 at 7:30 am

    I would check the value of the uipagecontrol in cellForRow … to return the cell at the given page. The uipageControl has a callback on event UIControlEventValueChanged where you should then reload the table view.

    - (void) callback:(id) sender {
        [mytableview reloadData];
    }
    
    - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath {
        if (pgcontrol.currentpage == 1) {
            ...
        } else if (pgcontrol.currentpage == 2) {
            ....
        }
        ....
    }
    

    You then need to carefully place the uipagecontrol on top of the uitbaleview, by experience the best is to have a bacground uiview that contains both a uitableview and a uipagecontrol or other control so that both do not overlap, in which case you end up using a uiviewcontroller instead of a uitableviewcontroller. In general I find that uitableviewcontroller are only useful for plain simple view with just a tableview and no refinement.

    Hope this helps.

    EDIT : to put it all together you’d go along those lines :
    1) create a uiviewcontroller subclass from the file template library
    2) on the xib add a page control as a subview of the controller’s view, same with adding a uitbaleview
    3) you need outlets to those 2 controls and you need to define the controller as data source and delegate for the table
    4) you need an IBAction as well to link to the event value changed on the pagecontrol, this is what I name callback:(id) sender in my initial answer + it’s IBAction if you do it with IB
    5) the rest comes back to the initial answer, with pgcontrol being your outlet to the uipagecontrol

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

Sidebar

Related Questions

On each cell of my table view I want to have a bar that
I have a UIButton that is created inside of each table cell. I want
I want to write a business object layer in a way that makes each
I have a multi-line string that I want to do an operation on each
I want to parse out each modified file that is reported during FCIV's verification
I want that everytime someone wants to checkout the project from SVN he/she will
Say that I have a table with a bunch of records, which I want
i have these two queries, that i want to join together, but am not
I have a page that has some content and 3 partial views each holding
I want that list, because if something horrible happens, and I'll have to reinstall

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.