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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T02:51:53+00:00 2026-05-24T02:51:53+00:00

How to insert four tableview in a scrollview by pagination.i know how to do

  • 0

How to insert four tableview in a scrollview by pagination.i know how to do this ,but i need a image view as first page and then tableview as second,third and forth page.
Thankz in advance

_scroll=[[UIScrollView alloc] initWithFrame:CGRectMake(0, 55, 1000, 460)];
    _scroll.backgroundColor=[UIColor clearColor];
    _scroll.pagingEnabled=YES;
    _scroll.contentSize = CGSizeMake(1000*5, 460);
    [_scroll setBackgroundColor:[UIColor lightGrayColor]];
    CGFloat x=0;

    for(int i=1;i<6;i++)
    {
        UITableView *table = [[UITableView alloc]initWithFrame:CGRectMake(x+10, 10, 750, 440) style:UITableViewStylePlain];
        [table setBackgroundColor:[UIColor whiteColor]];
        table.rowHeight = 120;  
        table.separatorColor = [UIColor grayColor];

        table.delegate=self;

        //table.dataSource=self;
        [_scroll addSubview:table];
        [table release];
        x+=1000;
    }
    [self.view addSubview:_scroll];
    _scroll.showsHorizontalScrollIndicator=NO;
    [_scroll release];
  • 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-24T02:51:53+00:00Added an answer on May 24, 2026 at 2:51 am

    Ignoring the recommendation that UITableViews are not embedded inside scroll views as they are scrollviews in themself. So dont do this (not a joke).

    You add the imageview with addSubview: just like the tableviews you want add. They are all UIViews and are all treated the same way.

    So for a hypothetical scrollview with size (100,100) and imageview/tableviews of size (100,100)

    imageview.frame = CGRectMake(0,0,100,100);
    [scrollview addSubview:imageview];
    tableview1.frame = CGRectMake(100,0,100,100);
    [scrollview addSubview:tableview1];
    tableview2.frame = CGRectMake(200,0,100,100);
    [scrollview addSubview:tableview2];
    tableview3.frame = CGRectMake(300,0,100,100);
    [scrollview addSubview:tableview3];
    scrollview.contentSize = CGSizeMake(400,100);
    scrollview.pagingEnabled = YES;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

My development team of four people has been facing this issue for some time
I have a project where I need to generate a PDF file. Within this
I have four DB tables in an Oracle database that need to be rewritten/refreshed
if #subWords>0 then print(Q3) for a,b in pairs(subWords) do table.insert(output,b) print(Q2: Adding ..b) end
#!/usr/bin/python numbers = [1, 2, 3, 5, 6, 7] clean = numbers.insert(3, 'four') print
I have a string like this: $string = 'one/two/three/four'; which I turn it into
I need to grab the first 4 characters of two input values (if entered),
Sometimes I need to insert some similar lines in a file which differ only
INSERT INTO tblExcel (ename, position, phone, email) VALUES ('Burton, Andrew', 'Web Developer / Network
INSERT INTO files (fileUID, filename) WITH fileUIDS(fileUID) AS ( VALUES(1) UNION ALL SELECT fileUID+1

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.