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

The Archive Base Latest Questions

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

How to make UITableView like above image? I know this is grouped table type.

  • 0

enter image description here

How to make UITableView like above image?

I know this is grouped table type. but how we can add the image+label+button to header of section.

I have tried

-(UIView *)tableView:(UITableView *)tableView viewForHeaderInSection:(NSInteger)section

but it starts with CGRectMake(0,0,320,height).

I want just above section and exact width of section just like in image.

Thanks in advance.

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

    CustomCell.h

    #import <UIKit/UIKit.h>
    
    @interface CustomCell : UITableViewCell{
        id delegate;
        NSIndexPath *indexpath;
    }
    @property(nonatomic,assign) id delegate;
    @property(nonatomic,retain)NSIndexPath *indexpath;
    @property(nonatomic,retain) IBOutlet UIToolbar *Toolbar;
    
    
    -(IBAction)SelectorLeft:(id)sender;
    -(IBAction)SelectorRight:(id)sender;
    @end
    

    customcell.m

    #import "CustomCell.h"
    #import <QuartzCore/QuartzCore.h>
    @implementation CustomCell
    @synthesize Toolbar;
    @synthesize delegate,indexpath;
    - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
    {
        self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
        if (self) {
            // Initialization code
        }
        return self;
    }
    -(IBAction)SelectorLeft:(id)sender{
        [delegate perfromselector:@selector(left:) withObject:indexpath];
    }
    -(IBAction)SelectorRight:(id)sender{
        [delegate perfromselector:@selector(left:) withObject:indexpath];
    }
    - (void)setSelected:(BOOL)selected animated:(BOOL)animated
    {
        [super setSelected:selected animated:animated];
    
        // Configure the view for the selected state
    }
    
    @end
    

    UItbaleView part

    -(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
        static NSString *identifier = @"identifier";
        NSUInteger row = [indexPath row];
    
        if (row == 0) {
            CustomCell *cell = (CustomCell*)[tableView dequeueReusableCellWithIdentifier:identifier];
            if (cell == nil) {
                self.Cell = nil;
                [[NSBundle mainBundle] loadNibNamed:@"CustomCell" owner:self options:nil];
                cell = self.Cell;
            }
            cell.Toolbar.clipsToBounds=YES;
            CALayer *l=cell.Toolbar.layer;
                // set corner radious
            [l setCornerRadius:10];
                // to apply border on corners
            [l setBorderColor:[[UIColor clearColor] CGColor]];
                // to apply set border width.
            [l setBorderWidth:5.0];
    
            return cell;
        }else{
            UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:identifier];
            if (cell == nil) {
                cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:identifier] autorelease];
            }
            cell.textLabel.text = [NSString stringWithFormat: @"cell %i",row];
    cell.delegate = self;
    cell.indexpath = indexpath;
            return cell;
    
        }
        return nil;
    }
    

    Also do n’t forget to create Customcell.xib and add tool bar through interface builder
    also create an outlet of CustomCell in tableview class and handle it as above

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

Sidebar

Related Questions

Thanks to this post I now know how to make a table with different
How can I make an iphone application that uses a UITableView but so the
The design of the UITableView is something like this: I want to make my
I want to make the grouped UITableView transparent. I partially succeded with the following
Normally, the UITableView is something like this: [ cell 1 ] [ cell 2
I am working on making a search bar above the UITableView, like in the
Anybody can tell me how to make Twitter's row menu in iOS app like
I can't figure out how come the row count is correct but the uitableview
I know xcode don't have radio Button so I try to add a custom
I would like to make my UITableView Footer stop floating over my content, as

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.