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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T05:35:35+00:00 2026-05-26T05:35:35+00:00

I want to make a UITableView, which has many columns, so the whole cell

  • 0

I want to make a UITableView, which has many columns, so the whole cell can’t display the all data, and the first column shows titles, this row can’t move flatly, but other rows can move flatly.
I tried adding UITableView to UIScrollView, but failed

Is there any ways to achieve this requirement?

  • 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-26T05:35:35+00:00Added an answer on May 26, 2026 at 5:35 am

    You need to make a custom TableViewCell to achieve this properly.

    EDIT:
    A quick example:

    #import <UIKit/UIKit.h>
    
    @interface MultiColumnTableViewCell : UITableViewCell
    {
        UIButton *leftButton;
        UIButton *middleButton;
        UIButton *rightButton;
    }
    
    @property (nonatomic,retain) UIButton *leftButton;
    @property (nonatomic,retain) UIButton *middleButton;
    @property (nonatomic,retain) UIButton *rightButton;
    
    @end
    
    
    #import "MultiColumnTableViewCell.h"
    
        @implementation MultiColumnTableViewCell
    
        @synthesize leftButton;
        @synthesize middleButton;
        @synthesize rightButton;
    
        - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
        {
            self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
            if (self) {
                // Initialization code
                leftButton = [[UIButton alloc] init];
                [leftButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
                leftButton.titleLabel.textAlignment = UITextAlignmentCenter;
                leftButton.titleLabel.font = [UIFont systemFontOfSize:15.0];
                leftButton.titleLabel.numberOfLines = 2;
    
                middleButton = [[UIButton alloc] init];
                [middleButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
                middleButton.titleLabel.textAlignment = UITextAlignmentCenter;
                middleButton.titleLabel.font = [UIFont systemFontOfSize:15.0];
                middleButton.titleLabel.numberOfLines = 2;
    
                rightButton = [[UIButton alloc] init];
                [rightButton setTitleColor:[UIColor blackColor] forState:UIControlStateNormal];
                rightButton.titleLabel.textAlignment = UITextAlignmentCenter;
                rightButton.titleLabel.font = [UIFont systemFontOfSize:15.0];
                rightButton.titleLabel.numberOfLines = 2;
            }
            return self;
        }
    
        - (void)setSelected:(BOOL)selected animated:(BOOL)animated
        {
            [super setSelected:selected animated:animated];
    
            // Configure the view for the selected state
        }
    
        @end
    

    Quick usage in tableview:

    - (MultiColumnTableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath 
    {   
        static NSString *CellIdentifier = @"Cell";
    
        MultiColumnTableViewCell *cell = (MultiColumnTableViewCell*) [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
        if (cell == nil) {
            cell = [[MultiColumnTableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier];
        }
    
        // Set up the cell...
        float tableviewWidth = self.myTableView.frame.size.width/3;
        int irow = indexPath.row;
    
        NSString *cellValue = myString;
    
        cell.leftButton.frame = CGRectMake(0, 0, tableviewWidth, 64.0);
        cell.leftButton.tag = someTag;
        [cell.leftButton setTitle:cellValue forState:UIControlStateNormal];
        [cell.leftButton addTarget:self action:@selector(someAction:) forControlEvents:UIControlEventTouchUpInside];
        [cell addSubview:cell.leftButton];
    
        cellValue = someOtherString;
        cell.middleButton.frame = CGRectMake(tableviewWidth, 0, tableviewWidth, 64.0);
        cell.middleButton.tag = someOtherTag;
        [cell.middleButton setTitle:cellValue forState:UIControlStateNormal];
        [cell.middleButton addTarget:self action:@selector(someOtherAction:) forControlEvents:UIControlEventTouchUpInside];
        [cell addSubview:cell.middleButton];
    
        cellValue = yetAnotherString
        cell.rightButton.frame = CGRectMake(tableviewWidth*2, 0, tableviewWidth, 64.0);
        cell.rightButton.tag = yetAnotherTag;
        [cell.rightButton setTitle:cellValue forState:UIControlStateNormal];
        [cell.rightButton addTarget:self action:@selector(yetAnotherAction:) forControlEvents:UIControlEventTouchUpInside];
        [cell addSubview:cell.rightButton];
    
        return cell;
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to know how can I make an NSString accessible in the whole
I want make an iphone app that has a UITableView that displays different texts
I want to make the grouped UITableView transparent. I partially succeded with the following
I want to make an entity that has an autogenerated primary key, but also
in my UITableView i want to set for the first news of an rss
I want to make a table view in which i want to show some
I have a UiTableView and the first cell is only showing information. The following
I have a UITableView which loads its data from the web. It takes a
The design of the UITableView is something like this: I want to make my
I want to make a link using label in every cell of table. When

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.